« first day (1416 days earlier)      last day (3525 days later) » 

12:31 AM
Haha. I thought you were showing a graph of the week and saying that you were slowly getting there.
 
@Johnston I'm like a hamster in a wheel :( - work my little butt off, but never actually end up getting anyway...
 
Sunday wasn't lookin so good for you
Thursday a big win though
 
It was just an experiment producing piecharts from a clients data
 
DSM
Evening cabbage, all.
 
@JonClements nice colors ;)
cabbage for all
 
12:47 AM
@Peter I got something right for a change then? :)
@DSM cbg
 
@JonClements <thumbs up/>
 
@Peter woot woot!
 
DSM
In an unusual coincidence, I'm plotting things up too. (Not the most exciting weekend I've ever had, but there you go.)
 
If you had a "but..." coming... leave it... I'm happy with that for the moment :p
 
actually there isn't -- I like the color-harmony of yours as it is
do you want to know why it is working?
 
12:55 AM
@Peter I bothered reading some colour chart stuff?
my DB is now not letting me in
 
What's a good 1 syllable word for messing around. Like what you do when your trying to figure out a coding problem.
 
school starts in two days .-. what do?
 
@JonClements I meant the colors of your chart, why we feel it is a harmony? a small hint: where do we got our inpsiration from about the color harmonies?
 
@Peter fish fingers and custard?
 
@JonClements almost ;) it is sunset, the cold, nighty sky, meets the warm but exhausted sun
this is a very common combo, the orange and yellow
they are always working.
 
1:02 AM
Ahh....
 
the color theory is based on these => those are complementary colors too
 
I just normally see grey when in England... so I don't think I'd find any useful references here like that :)
 
:D:D:D:D
@PeterVaro *orange/yellow and blue
 
haha... I like that
 
okay, my brain has been awaken -- and I am the most productive in these hours, so, bbl guys
rhubarb
~
 
1:10 AM
@peter rbrb for now :)
 
DSM
r
 
This high rep user wanted an explanation for the downvotes, so I gave him one. Maybe he'll learn something from this. stackoverflow.com/questions/25591594/…
Also, lol @vaultah.
 
1:24 AM
Yeah... not helpful for a learner
 
1:34 AM
@davidism ever worked with sqlacodegen'd delcaritive bases and getting them to fit in nicely with flask-sqlalchemy?
 
@Zero not sure that's a dupe of that one - more just use "OrderedDict" on your sorted results rather than dict
 
He's asking a question, but I can't figure out what it is.
@JonClements haven't used sqlacodegen, but I assume it just creates python/sqlalchemy code based on a database schema
 
Yeah... think I've worked it out now... I was doing some stuff back to front
 
My guess is the only thing you'd have to do is change the models to inherit from db.Model.
 
@JonClements Just used the sopython.com canonical "I want my dict in a different order" question - on rereading both, it looks like a perfect dupe to me - the point of both questions is an attempt to impose order on a dict.
 
DSM
2:14 AM
The OP does seem confused about whether or not a dict has order, so I think Zero may be right.
 
@Zero bah... could be... just been staring at this rubbish for close to 20 hours now... and it's 3:15... so not at my best :)
 
Go to bed, man! :-)
 
DSM
Puppies need their sleep! If you're not spending half the day unconscious, see a vet.
 
Wow, when I told him to put the comment into the question, I didn't mean verbatim, the verbosity is the problem.
 
Just wanna fix these couple of errors, then I'm happy :)
 
2:21 AM
Any sentence beginning with the word "just" is a lie.
 
It's going to be one of those simple ones
 
Now you're doing it deliberately ;-)
 
And it won't break anything else that's working!
 
Hi All
 
DSM
Ha! I finally beat my shapefile data into submission.
 
2:31 AM
Hmm, interesting strategy - call down the wrath of the debugging gods, and generate more billable hours to fix the resulting disaster ...
 
I have a quick question: how to get rows from database which are in a specified list.
Maybe this but not sure: 'SELECT * FROM myapp_person WHERE last_name = %s' % nameList
 
@Zero in for a penny - in for a pound or whatever :)
 
You know, running the test suite is pointless this time because you've obviously fixed it now ... might as well just push it to production as is ...
 
DSM
Something very strange happened yesterday: my circles crossed. A real-world friend asked a Python question on SO and Martijn answered it.
 
3:36 AM
@davidism, thanks. Is it possible to opposite?
 
3:56 AM
@davidism, thanks again!
 
 
1 hour later…
5:04 AM
cbg
@CoKoder ah:
'SELECT * FROM myapp_person WHERE last_name = %s' % nameList <- this is always wrong
you never use % operator with SQL strings
(just to make sure you do not ever use it)
 
@AnttiHaapala But - if people become more aware of it - then naming a son "Little Bobby Tables" won't be as much fun anymore
 
@JonClements nice reference!
 
@JonClements ok point taken
and bobby's just a nick
Failed example:
    conn.root().b.open('w').write(b('initial'))
Expected nothing
Got:
    7
don't you just hate polyglotting and doctests...
 
At the moment I hate everything :p
 
5:10 AM
@JonClements trying to polyglot zope relstorage
then someone decided, write now must return a value
so now apparently I need to make the doctests that are documentation look like total crap
so how do I ignore return value in doctests?
 
Don't ask me... I'm too busy being confused and frustrated by other stuff right now
 
ah
@JonClements there was already a convention being used in here
which is:
_ = ignoremyreturnvalue()
 
Umm... why even bother binding to the result though? :p
 
@JonClements bc doctests

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
javascript title is now from the comics
maybe change the python name too :D
 
an interesting answer :p
 
5:26 AM
digits or figures/numbers/whatever?
how does one get that number
@JonClements the question is very interesting oto
now if I parse it correctly, they might just be power outputs by minute in unknown unit (can't be KW) and the question is about KWh ...
 
6:03 AM
I think I've fixed the problem that wasn't mine
I'd run the test suites, but what a surprise, the guy who did this part of the system didn't write anyway
 
6:26 AM
How can I figure which portion of the python program is taking the most amount of time ?
 
Have a gander at this question / answer: stackoverflow.com/questions/582336/…
 
Thank you, looks like I wasn't using the right search terms.
Gander, I will!
 
cbg @cbednarski and @user994572
 
@Antti sorry - thought I'd already voted on that one
 
6:39 AM
@Jon re your mpl problems last night : you should know by now to come see me :p
Just as I come to see you when I want some off the hook one liner involving itertools.
 
@Ffisegydd you weren't about...
 
----------------------------------------------------------------------
Ran 256 tests in 308.209s

FAILED (failures=21, errors=56)
 
I've still got an issue with spacing
 
relstorage
 
6:41 AM
Spacing between labels or bars?
 
I'd also like the bars wider...
I'm basically after that
And getting that
I'd ask a question on SO... but it'd just come across as a request to write code, cos I have no idea what options I should be looking at changing... and I tried changing quite a lot during the night... (with some interesting results)
 
Yeah
 
Got the piechart working nicely, which I expected to be harder, but it's the bar charts that have got me discombobulated
 
Just re-writing the code a bit
 
Re-write the entire lot if you need to... I'm not going to take offense if it's shite :)
 
6:54 AM
Uhhh...yeah I already have.
never do from pylab import * as it overwrites some builtins :P
With the numpy versions
(max, abs, etc)
 
Ok... I was taking it from the matplotlib example docs
(which are yamming rubbish)
 
Yeah I know :<
Some of them are, the more advanced ones are a bit better
 
If I knew what I was looking for, it might be okay... but since I haven't an idea...
 
@Ok well I've got this
It's not perfect, has some spare space on the right hand side
 
Okay... I can always hack that off... how about no y axis, and the border around the thing?
 
7:02 AM
Guys, do you know any reliable face detection (not recognition) Python library?
 
@thefourtheye not something I do
There's probably one in a recognition library, as surely it needs to detect before attempting a recognition
 
But it is not reliable. I used a mountain picture, it detected a face in that as well :(
 
People see faces in clouds, and in trees and in shadows and errr... :)
Does it detect a face if you draw a large smiley on a piece of paper?
 
I didnt try that :(
I tried with these standard images homepages.cae.wisc.edu/~ece533/images
 
@Jon how abouts that?
 
7:15 AM
I'll be happy to go with that
 
Just tidying up the code and putting some comments in
 
@Ffisegydd me love you Stewie! You're my most favourite psychotic baby in the entire world :)
 
Not bad for someone still in his dressing gown...
 
Well... you could have saved me 4 hours last night :)
 
You might find that when you generate your actual plots with actual data that it might still be scrunched up, you can adjust the width of your plot in the plt.subplots() call
 
7:20 AM
It shouldn't do... the data will be days of the month... so it's always 1-31 inclusive on the X
 
Ah ok
Well if it does look scrunched up it's just a little refactoring to use fig = plt.figure(enter_your_figure_dimensions_here); ax = fig.add_subplot()
As opposed to fig, ax = plt.subplots()
I need to get ready and head to work, give me a ping if you have any questions or need anything changing up.
rbrb for now.
 
@Ffisegydd cheers - rbrb for now
 
fourtheye
what is fourtheye?
 
7:39 AM
A person?
 
CbG!
A dog?
 
I think you mean a vegetable.
Unless you named your dog cabbage. /nonsequitur
 
8:08 AM
@IanClark Gr.r.r. A puppy...
 
@thefourtheye :D
 
rbrb lunch time...
 
8:28 AM
hmm.. a puppy who goes for lunch!.
 
@Abhin when we're not working, sleeping or chasing cats... what else is there to do? :p
 
Cabbage!
 
9:17 AM
Cabbage
 
cbg all
 
How's Monday treating y'all?
 
No work :D
Worked on weekend
 
I worked at the weekend, and I'm working now. You sicken me @sachitad. Get outta my sight ;)
 
Cmon mate @IntrepidBrit, we gotta take rest one day in a week.
Besides I am browsing stackoverflow, so I am doing something productive ;)
 
9:31 AM
I'll let it slide. This time...
 
I have one Django query question for ya all. I accomplished it in a pretty rough now, may be there's a better way to do it.
@IntrepidBrit, you dig Django?
 
I love me a bit of Django
 
So there are 10 rows on a database. I know the first now and I want it as a first element in my queryset. Something like .order_by('by_that_object'). What would you achieve it brit?
 
@JonClements Sshhh Puppy, don't let people know about our world domination plan...
 
@sachitad I don't quite get what you're asking for.
 
9:44 AM
Oh dear lord. Let me explain it again. Let's say I have a list like this [1, 2, 3, 4, 5, 6], I want to order in such a way that 6 is my first element. I want to achieve the same thing in Django queryset.
 
@sachitad Then yes, order_by() is your fellow
 
order_by how?
order_by that object?
 
say you have a QuerySet qs, defined by qs = MyDjangoThing.objects.all()
 
hm hm
 
9:49 AM
then ordered_qs = qs.order_by('model_field')
Depending on how you want to order it
If you want a descending order, then it's order_by('-model_field')
 
I don't want to order from the field, I want to order from the object.
let's says qs query result is like this [<object_1>, <object_2>, <object_3>], I want it to be ordered like [<object_3>, <object_1>, <object_2>]
 
Mhmm...
What defines the ordering?
 
order from object, not from fields.
 
What do you mean by "order from object"? Do you mean that you have a relationship with another model (one to one, one to many, many to many)?
 
@IntrepidBrit they're ordered by magic :)
 
9:57 AM
@JonClements Hopefully not!
 
@AnttiHaapala Cabbage
As a Brit, reading stuff like this makes me twitch internally. I think about ~.3% of my sanity has died thus far
12
Q: C# getting all colors from Color

Pieter888I want to make a ComboBox filled with all the colors from System.Drawing.Color But I can't seem to collect all the colors from that collection I've already tried using a foreach to do the job like this: foreach (Color clr in Color) { } But all I get is an error. So how can I loop...

 
10:13 AM
I get annoyed having to deliberately mis-spell colour in CSS and graphics libraries
oh... centre - that's another one that bugs me
 
I think we should fork CSS and EVERYTHING else in the world to allow for both the colour and color spelling
And just redirect it to the color function
Maybe we should create an assembly instruction/definition for Briticisms
Hey! My spell checker actually had Briticisms in it!
 
Someone just answered it
But yeah, you're right. (I lost another ~0.1% of sanity just looking at the question)
 
It might be your insanity is unsigned, and that by actually losing all of it, you'll end up with 4.2 billion of it!
ergo... you must aim to lose your sanity
 
I'd rather not risk it. I don't want to think about what happens if I get -0% sanity remaining
... I'm not sure if this is helping or hurting my sanity - thrillist.com/recipe/nation/…
 
10:21 AM
How'd we tell the difference anyway? :p
 
Are there videos of me on the internet running around naked biting MPs?!
 
I'd do that if I could
 
You're a dog, it's a bit more socially acceptable
 
Slightly easier to be put down though
Right... finally finished what I was working on... so since I've haven't gone to bed yet, I'm going to have a quick snooze before having a bite to eat... rbrb for now
 
It's true. Just don't foam in the mouth and you should be okay
Sleep well. I'll hold down the fort. What could go wrong?!
 
10:23 AM
@IntrepidBrit awww... why did I bother buying those alkaseltzers for then!?
@IntrepidBrit well last time, Daniel turned up... if you can achieve something like that again - that'd be cool :)
 
@JonClements I'll aim higher. Shooting for Skeet
 
@IntrepidBrit Why stop there? Get the top 10 of all SO users... I'll be back in about 2hours ish... good luck! /me plays Mission Impossible theme
 
waits for @JonClements to leave the room, then starts playing Zork
 
10:41 AM
I was just flipping through facebook hoping that'd put me to sleep, but... one sec
There we go - I can rest now...
 
How long have you been awake? 24 hours +? Go to sleep.
 
@JonClements Lulz.
 
Go to sleep @JonClements, I will ping you in your sweetest dreams, as I used to, so you won't miss a thing ;)
 
@Peter everyone's on mute... :)
 
challenge accepted ;)
 
10:45 AM
rbrb :p
 
rhubarby night
 
cbg
 
Now comes the challenge of leaving the office without seeing any of my co-workers so I can go to lunch on my own and sit in peace. Time for mad ninja-skills! Wish me luck...
 
Cabbage to the later comers
@Ffisegydd Get a reputation for eating super strength onions...
 
Cabbage! Define late :).
 
10:57 AM
I do love onions (warming my dinner up)
 
@Fenikso Later than me. I know this is late because I'm always late. I'm tardy that way
@Ffisegydd Via microwave or by sitting on it?
 
Both. I'm sitting on the microwave.
It's all warm, toasty, and vibratey...
 
I'm sure that's breaching some H&S rules...
 
@IntrepidBrit :-D
 
@Ffisegydd Best last words ever
 
11:06 AM
Cbg
 
I've reached my goal. I repeat : the salmon has evaded the bears.
 
Cabbage @vaultah & @MartijnPieters .
 
Cabbage, the even-later comers.
@Ffisegydd Vic-troy
 
It is the 1st of september, and it seems the influx of homework questions just spiked.
How am I supposed to complain about the Eternal September in September now?
 
11:10 AM
When's the next general election due?
 
Via usenet?
@Ffisegydd 30th March 2015.
 
Ok ta
 
Bah to the fixed mandate leglislation
 
Will Scotland be independent by then if they decide to go?
Or is the independence timeline on a longer scale?
 
No. Should the vote be YES, negiotiations will begin. Expected Independence by around mid-2016
Which is a stupidly short time-frame, but sure
 
11:13 AM
Ah OK
 
Anyone who's had a divorce knows that it can take years to resolve. 2 years is just fanciful. Of course, should it take longer, all fingers will point at Westminster
 
11:33 AM
WindowsMobile 6
#justsayno
 
11:52 AM
Hi, Is there a simple way to specify that the entire program treat all my floats as a decimal with 6 point precision ? or do I have to use decimal.decimal(x, 6) everywhere I want to use decimal ?
 
Why not work with floats and then simply print 6 decimal places?
 
just printing 6 decimal places will not be enough if there are numbers to round or will the print take care of that ?
 
You should so all calculations with as many decimals as possible then round when printing
 
@Ffisegydd +1.
 
ok.
Thanks.
 
12:04 PM
@Ffisegydd Aside: Columbus wasn't British...
 
12:14 PM
Whatever.
:p
 
12:42 PM
@Peter 9gag.com/gag/ae30jMb?ref=fsidebar are these genuine? If so you should definitely bring some so sopycon.
 
@Ffisegydd yes they are;)
however, I don't like cakes :/
this one is my favourite dessert:
 
That's okay you can have some of IntrepidBrit's whiskey
 
it's also genuine hungarian afaik
 
What's that? Looks like custard or a flan or something.
 
it's called bird-milk {madár tej}
oh, its called "hungarian floating island"
 
12:48 PM
We don't really have much of a culinary history in Wales, only Welsh Cakes (which are like scones but a billion times better), and Welsh Rarebit (which is cheese on toast but a billion times better)
 
we have tons of desserts, really -- and a huge part of it made of sweet-cottage
which is sadly not available in most western countries
I like the cottage-cheese you have, but that's salty not sweet
 
Yeah I've never heard of sweet cottage cheese
 
you should try it sometime:)
although, my sister's husband is irish and he hates even the fact of a sweet cottage cheese
(he can't stand all the nice things we make from it)
 
Yeah it strikes me odd to begin with
But I am willing to accept it is actually nice
 
you should definitely come and visit hungary sometime -- if nothing else, but for desserts and all the foods we make ;)
 
(and hungary is quite cheap compared to UK)
 
@Ffisegydd Heyyyyyyyyy. Firstly, hands off! Secondly, buy Whisky without the 'e' ;)
@Ffisegydd +1 for Welsh rarebit
@PeterVaro Budapest is an absolutely gorgeous city as well
 

« first day (1416 days earlier)      last day (3525 days later) »