« first day (2081 days earlier)      last day (2860 days later) » 

2:42 AM
OMG, litterally everything awesome just happened in Game of Thrones.
 
 
2 hours later…
5:07 AM
 
 
1 hour later…
6:22 AM
cbg
 
@davidism Spoiler alert much :P
 
 
1 hour later…
7:49 AM
Cabbage!
 
Cabbage@
 
TIL django-rest has object level permissions. Dunno why I used something else.
 
CBG all.
 
8:09 AM
cbg everyone
 
cbg all, and well met
Just thought I'd introduce a Shakespearian note
 
@PM2Ring thanks again for yesterday.
 
8:24 AM
@AndyK No worries. It was fun. :)
 
ha ha. I was in a mental ourobouros, my GF was asking me to get back to the real world
-_-
 
@AndyK Hey, it happens. When you get stuck on a misguided track it can be hard to understand what you're doing wrong, and there's a tendency to misinterpret stuff to try and force it to fit the broken theory.
rbrb (I have to start cooking dinner)
 
have a nice meal @PM2Ring
 
morning cbg
 
8:42 AM
@holdenweb I'll go for I like this place and willingly could waste my time in it then :)
 
Morning cabbage
 
Cabbalabage
 
I imagined cabbalabage to be to the tune of Inner Circle's "Sweat" - youtu.be/uc2UEfWjvo8?t=1m26s
 
I was thinking more "Mamma Mia" from Abba
 
"Cabbagia", lesser known Roman Tribunes.
 
8:57 AM
But one of the best.
 
(In case anyone needs a soundtrack for Monday morning that fits the fairly bleak mood I'm seeing - open.spotify.com/album/0m4frfBRSJlnL1L6vzq4Dj )
 
"Cabbalabbage
Here we go again
My my, good to write in Python" ... etc.
 
heh
absolutely, definitely, didn't sing that out loud, nope
 
@holdenweb can't remember if I asked how your birthday went...?
 
@PM2Ring tried this; instantly upped the number of balls to 3000; had to close tab
 
9:08 AM
@RobertGrant Yeah, 3000 balls will slow things right down. :) I tend to go for ball numbers near numbers that are products of small primes, (hence the default of 30).
 
Why would that be a good idea, just out of interest?
 
@RobertGrant I literally did exactly the same thing
yesterday, by Ffisegydd
3000 crashed my page
 
3000 works for me
30000 doesn't though
 
@Ffisegydd that's actually scary
I guess the 30 guides you in that direction, if you're of that mindset
 
Probably yeah. "Put zeros on the end until it breaks!"
Or, we're actually part of a hive mind.
 
9:26 AM
@RobertGrant If the number of balls is pq, when the balls form up into p groups there'll be exactly q balls in each group, which looks a bit more symmetrical than if the groups don't all have the same number of balls. And that makes it easier for your eye to spot when the groups are starting to form.
 
rbrb
 
@PM2Ring aah I see :) thought it was some performance thing I'd never heard of :)
 
Hi! i'm working in Ruby on rails from 2 years now looking to move for Python (django). Is it good move or not?
 
We think so :) Both good languages and frameworks, but we obviously prefer Python :)
Django is the closest thing to RoR you'll find on Python; there are also other frameworks you can try. I started with Django and didn't stay there, but it was pretty easy to get up and running with.
 
9:40 AM
(What d'you use now, Robert, out of curiosity?)
 
Flask
I'm not a great guide, because Python is a hobby for me at the moment, but Flask seems to be used by quite a few pros who want a bit more control.
 
Would've guessed at that. I found (as a relative newbie), that Django obscured a lot of stuff that it would've been useful to understand, and I'm getting to grips with those things now.
 
I'm kind of the same - I'm still maintaining Django projects from yonder-year, but I've found reasons to not use it for new projects.
 
Yeah I think the thing with Django is it doesn't teach you so much about Python as you use it, so you end up being more of a Django expert than a Python one. Flask doesn't have that so much, and Pyramid even less (although any framework will have it a bit).
 
That makes sense. I discovered that when I fell on my arse during a technical test last week as I was using flask rather than django, and effectively forgot a lot of stuff Django does automagically.
/took for granted
 
9:44 AM
(I guess Bottle would also teach you more about Python, as it's so mini)
 
One thing I do rate about Django is that it does force you to separate "areas of interest". Been on projects where the lines between front end and back end got blurred and ended up as horrible, horrible code soup.
 
Pyramid!
the thing is, pyramid is the best web framework
 
but python is a bit stale now and flask and bottle had headstart
 
I did really like Pyramid; it was just a bit too much for me
 
9:47 AM
the greatest framework would be something like django written on top of pyramid
but modular...
 
Yeah
 
django is not modular the least
ah
 
I guess to do that you'd need a Pyramid view of what a model is, and a perfect mapping to SQLAlchemy (and other persistence mechanisms) and then every Pyramid thing built on that Pyramid model
 
I'd plug my friend's not-yet-so-completed websauna
 
Because lots of the Django lack of modularity is due to their idea of what a model is being tied to their ORM
 
9:49 AM
Real programmers respond to web requests via letter.
 
@RobertGrant yesterday I was programming django after a while
and it amazed me how shitty it still can be
for example charfield requires max_length; if you've got a textfield then it'd be rendered with a different widget.
db migrations cannot handle changing primary key type
 
At that Oxford Python thing there was a Django core dev; should I have slapped him for you?
 
... but all this shit just passes silently in sqlite3
 
I once questioned on the Django core dev mailing list the fact that they don't have a login/logout module that comes with Django, but they do have that django admin thing. They weren't happy.
 
@AnttiHaapala But Antii, it is "modular". Has never successfully written a Django project that was properly modular
 
9:55 AM
One thing I did with Pyramid (copying it from Laravel, because I liked it) was make a separate routes.py file, to manage URLs in one place.
Maybe I can do that with Flask, although with blueprints I'll need to see what's what
Or maybe I can't be bothered
 
Okay... "kills flying insects in seconds"... half an hour later... I'm still waiting - I'm going to resort to a rolled up newspaper shortly... Although to be fair - they didn't specify how many seconds...
 
cabbage
@Jon did you smash hard enough? Maybe the can didn't gather enough momentum.
 
That websauna project looks interesting, might look at that code as it gets built to improve m'own.
 
Ohh.... so that's what you do... so the contents of the can are just a bonus extra... I feel like a fool now :p
 
well if the contents don't help...;)
 
10:00 AM
@Withnail does look cool
 
cf HUmptulip's 2000 page treatise on 'How to kill insects'.
 
I converted my project in a couple of days from pyramid to flask; perhaps now I should go from flask to websauna! Anything to avoid actually adding features.
One major thing was that each framework has its own custom authentication plugin to handle logins etc; would be cool to have a generic one that sits on an ORM and then just little integrations to each framework on top of that. I guess the "I want to switch web framework at will" market isn't big enough to sustain that, though.
 
With Antti talking about "my friend's not-yet-so-completed websauna", I never doubted for a second that it's a project about a sauna controlled/maintained through a web app.
Talk about prejudices:P
 
wtf is wrong with UK?
there's now shitload of posts of racist verbal attacks on Finns
"get back to Poland you Polish whore" and such?
 
wat
 
10:09 AM
yes
 
(t)wat(s)
 
By that comment alone, you can probably work out that it's not the smartest demographic in British society
 
Why Finns of all people? Did you beat them at football? Or what?:D
 
@IntrepidBrit sadly the referendum result has validated prejudices in the nut jobs...
 
and a Finn girl working as a bartender said that a man in late twenties dressed in a suit, sober, said he cannot buy beer from foreigner, refused to pay, started pretending he doesn't understand what she's saying
 
10:12 AM
oh for yam's sake
 
I see it as a "good thing". These fuckwits have no doubt been racist to people in the past, and now they think they're in some sort of "majority" feel it's time to show their colours.
 
human ethology at its best
 
Allows us to find out who these weapons-grade plums are and do something about it
 
and then some spanish guy heard immedately after the election at his workplace that "now get the citizenship or go back to Spain. Don't understand why you got the job after all, because Spaniards are lazy"
 
and the more these assholes sense that they done fucked up with voting, the more they'll have to rationalize, an important part of which is being a dickhead towards everyone involved
since, you know, we didn't make the biggest mistake in UK's recent history, we did the right thing, fuck those foreigners
 
10:13 AM
this, think about all the psychos who were in heaven in Nazi Germany
"wow at last I can feel that my country really appreciates me"
 
yeah, unfortunately that's basic human behaviour
cf. Zimbardo, Milgram, etc.
they still deserve a cognitive kick in the face though
 
Was such an obvious thing to happen though. 5 years down the line, post deportations and people leaving, who do you blame when there's no Jonny Foreigners left to blame for your ills?
 
however I am sure no brexit will ever happen
 
@AnttiHaapala that's what I think
 
10:19 AM
I can't see it not, now.
 
Well, as I keep saying to the whingers on my social media. It's not over 'til the fat lady sings.
 
There'll literally be riots if it doesn't. The threat of violence was never far from the surface during the campaign and surfaced a few times, including fatally.
 
@Withnail maybe I should start rioting now, so we can say there'll be riots either way
 
That's one thing we Brits are great at - smashing up our own cities.
 
This is the problem though, isn't it? That 'we' (loose use of a sweeping generalisation klaxon) don't riot.
 
10:21 AM
But just me. And in my own way. I'll wear green and blue at the same time for a riot of colour!
 
Riots as voice of the voiceless and that.
 
@Withnail but what if those people sabotage the referendum and there's no brexit
We want independence :P
 
Well exactly. We're giving serious thought to leaving in any case. The atmosphere's been more febrile the last few years, and increasingly so. Not 100%, but seriously looking at it. So if anyone needs a remote worker... ;)
 
have I noted today that people are bastards?
I should put it in crontab
 
(We == my family, in that instance)
hahah
 
10:24 AM
@Withnail sorry :(
 
:(
@Withnail are you a foreigner, or a proper person in the UK?:P
 
@Withnail Likewise - this vote should have been about government, not about race. :(
 
The sopython citizenship test generally screens out non-UK (and strategic partner) citizens up front
 
if this was Hungary, I'd say "nothing is not about race"
and I'm starting to think that there's not that huge a difference now
 
I'm a doubleplusgood truebrit (as we shall henceforth be known in Brexitnewspeak)
 
10:27 AM
We have always been at war with WestEurope!
 
@Withnail what makes you think the Mainland welcomes your kind?:P
 
But i'm also a doubleplus OverSmart Expert
 
(mildly worried about a flag)
 
haha who said I was fleeing to the European Paradise? ;)
 
ah I see:D
Dubai is more stable economically
 
10:28 AM
Tbf, 15/17 of the places we're looking at are in Europe.
The others are in Trudeautopia.
 
17 places?!
 
:D
 
Wow, Britain is presumably 18th at best, then
 
I'm moving to Scotland to live with Intrepid. Intrepid does not know this yet.
 
I wouldn't unless Sturgeon wins Indyref2.
 
10:29 AM
Intrepid, to be known as Independent in the near future
 
In which case I shall return 'home', and work as if I live in the early days of a better nation.
 
@Ffisegydd You're welcome to crash on the IntrepidCouch for a bit :p
 
"bit" is vague enough for me.
 
The only tv my son is allowed will be The Railway Children and The Darling Buds of May, to give him a sense of what Britain was like. In my mind.
@IntrepidBrit how long can I stay if I give you a gigabyte?
 
Ah, i see you read the Mail.
 
10:31 AM
@RobertGrant "The Darling Buds of May" - that was a fantastic show...
 
Pop Larkin, can't beat it.
 
I'm related by marriage to someone from it :)
 
I know someone who's brother is married to one of the twins.
DAMNIT.
 
Mind you - pretty much anything with David Jason has been in has been brilliant...
 
I was hoping to steal your thunder.
 
10:32 AM
Yes, I married David Jason
@Ffisegydd wow, good memory
 
@RobertGrant Un-edit that RIGHT NOW
 
I much preferred him to his younger sibling, David XML
 
@IntrepidBrit lol I know :)
 
*older sibling damnit
 
I should make some plugin called David JSON
 
10:33 AM
@RobertGrant I'd throw in breakfast
 
@RobertGrant I remember everything.
 
@Ffisegydd @RobertGrant and this is why everyone asks if you know "FAMOUS/NORMAL PERSON HERE" if they hear you're from the UK
 
Oh lordy - just searched YT for tDBoM - and there's loads of episodes - netflix will get a break tonight :)
 
Fizz is Queeg
 
Hahaha, Queeg. "April fools!"
 
10:35 AM
tbf, I get asked that a lot when I say I'm from scotland, "Oh, you must know X random person". I frequently do.
 
@Withnail Is it "Oh, do you know I?"
waits
 
@IntrepidBrit Oh... one of my favourite RD sketches: youtube.com/watch?v=1KE0njnZXyY
 
I wonder how many more labour politicians can resign?
I wonder when people who literally just got appointed will resign?
 
:D
 
New new new Labour is having birthing pains
 
10:36 AM
@Zero I reckon if you turned up at the Houses of Parliament you could be in with a shout for a shadow cabinet position :P
 
No no, this is New Old Labour.
Shadow cabinet :p
 
night drawer?
 
Seriously though - if the Westminster decides to dissolve early, I'm running for MP.
 
Bagsie being your speechwriter.
 
until the zombies come, then you'll run for yer life
 
10:38 AM
Currently in favour of zombie apocalypse
 
at least they have a program agenda
stupid distorted translations
 
@Withnail Done!
 
@IntrepidBrit £75/yr basic
 
Just got some expenses through finally. That'll do.
I love expenses, because internally I've already written the money off, so it feels like I'm getting extra, even though I'm not.
 
Yeah I'm the same
I expense my journey to work, so I just get a regular hit every week
 
10:41 AM
"Ooooh expenses! I can spend that on stuff!"
 
Which I've forgotten about when my car needs maintenance
 
Currently moving house, so that's £N extra IKEA.
 
Oh yeah, that'll be fun for us in a few months
 
@Ffisegydd watch out with a moving house, that MALM is heavy, don't get crushed
 
Reading IKEA opening just in time
 
10:44 AM
We've already got most things, just need a few extras now like side tables and £1,000 worth of crap that we don't actually need.
 
This year was the first of my life where we didn't automatically buy the cheapest line in Ikea. Felt like we'd arrived. Less so when we had to assemble it.
 
Yeah
 
takes longer to assemble, takes longer to fall apart
 
@Ffisegydd we'll never survive without poi ramekins!
That's why they were the first items purchased by FizzyBob Consulting
 
We also didn't buy the cheapest line in Ikea, especially for things like bed, sofa, and desk.
Coffee tables and bookcases though? Whatever, cheaper the better as long as it'll stand up.
 
10:47 AM
Just buy something for £10 from an antique shop, paint it white badly and it looks like the latest thing
 
Having built my own desk, I can safely say I'll never buy another.
 
Because your desk fell on you and you can't earn enough to afford a new desk?
 
Built as in you built it by hand from wood that you measured/cut/put together?
 
@Ffisegydd we love Lack, it's small and cute. But not particularly sturdy.
 
Hah. We got a lack one. I can't access 9gag at work.
 
10:50 AM
Yeah, built from scratch from a 2440x1440 bit ofwood.
 
Lack (probably) ^ :D
 
I was ^^ seriously worried by what that was at first
 
What's the most common way to log in Python? With the built in logger?
 
Yes
Depends what you need though.
If it's just little bits to console then you could consider printing directly.
If you need timestamps and all that jazz, or to log to multiple places, then use logging.
 
Nah, I'm beyond that stage, moving on to being able to run under a flag or plainly log to file
A bit closer to "production" ready logging
 
10:57 AM
I suggest try: ... except: print "something went wrong" to be fully compliant according to all possible scenarios:P
 

« first day (2081 days earlier)      last day (2860 days later) »