« first day (1511 days earlier)      last day (3441 days later) » 
02:00 - 15:0015:00 - 00:00

2:37 AM
CBG
 
 
5 hours later…
7:34 AM
Cbg
 
8:07 AM
cbg
anyone use redis?
 
8:18 AM
Cbg
 
9:07 AM
cbg
@AnttiHaapala occasionally...
 
Not unhealthy stats since we implemented it
@Ffisegydd ternary statement
 
Conditional expressions (sometimes called a “ternary operator”) which should I use?
 
I've been moaned at before for calling it an operator... wish I'd have thought to link to that - you're probably safer with "conditional expression" :)
But easy rep there - nice one :)
 
Nice way to begin the morning and get me within 100 of 8k
 
Only other thing to beef it up slightly, is that if a is large, then convert to a set first
 
10:12 AM
@Jon nice. Added with a link to the Python time complexity page.
 
Ahh... they've got the numpy option - that makes it easier - go for it!
 
I tested a numpy function and it was slower than list comp, I suspect this is due to the length of the list/array.#
It's 10 elements long, if it were 10,000,000 then I think numpy would win.
 
How does my answer compare speed wise with yours?
I'm just throwing it in there as it was actually my first thought instead of a list-comp
 
@Ffisegydd is numpy always lazy?
 
@Jon yours is faster (1.44us compared to 4.26us). I wonder how that would vary for large lists though.
 
10:20 AM
Wow - that much faster? I thought it might be about half as fast... not ~3x
 
When I increase it to 100,000 elements numpy wins hands down.
Am adding the numpy and the timeits into the answer now
 
Is that the laziness? Less memory usage/fewer garbage collection pauses?
 
Okay. Updated again :D
That is one long-ass-answer for a simple thing :P
Nice team work pup!
 
taptaptap is this thing on?
 
Sorry I was busy timing things.
I suspect for low N numpy is slower because of the overhead of creating a numpy array.
But when you get to large N is negligible, it's all about the SPEEEEEEED.
 
10:33 AM
cbg
 
sorry - was just making brekkie
 
cbg Martijn
 
@Ffisegydd nice answer - explanations, alternative approaches, timeits... etc...
 
Between us we even got a Nice Answer badge :D
 
lol - we need to get you 3 more, then you get a nice and enlightened I believe
 
10:38 AM
Eh. It might get some throughout the day. And if it doesn't I'll just use my secret voting ring.
 
one voting ring to find them, and in stackoverflow bind them?
 
You know it's gonna be a weird day when you're considering subclassing list.
 
@Ffisegydd +1
 
@Ffisegydd I just know it's going to be a weird day as soon as I get up :p
 
10:54 AM
cabbage
 
cbg @limelights - where've you been hiding!? :P
 
Man, these last couple of months has been craycray - but now i'm back
AND
 
Not in the limelight, that's for sure
 
as an added bonus, imma be a daddio and i get to work with python again
 
"imma be a daddio" - errr... I can read that in two possible ways.. which one is it?
High Court declares the government's ban on sending books to prisoners in England and Wales is unlawful http://bbc.in/1ztqpX7
 
Give em a padded Kindle and an unlimited budget :)
 
Wat!? We know there's only one real Python Ninja... quick @Martijn - start suing!
 
Plot twist -- Organized by Martijn :P
 
Ya know what - I think the sopython logo is nicer than the python one... I may be biased, but...
 
Where's the logo??
ohk i see it.
 
11:08 AM
@JonClements we're having a baby :P
 
@Swordy Good luck having answers on your question, 'cause I don't think you'll get any that uses the standard re python and works as you want it
 
how's things in here? i missed the SOPython meeting. wanted to be at that.
 
@limelights both of you!? Wow... that's impressive...
seriously though - congrats mate :)
 
@Jerry yeah , that was terrible and I did not upvote it..
 
11:10 AM
@JonClements :P Thanks :) - Yeah, I read it already :)
 
@limelights I wasn't there either... I took the rubbish out and the door slammed behind me - didn't have my keys...
 
@limelights Congratulations mate.
 
wasn't too worried as the back door's normally open anyway, but it wasn't
 
:)
@Ffisegydd thanks
 
so ended up sitting in the shed for about 5 hours until my neighbours got home
 
11:11 AM
@Intrepid sup dawg.
 
Cabbage folks
 
@IntrepidBrit cbg
 
@JonClements hahahaahahahaahahahahaahahaha
as if.
They'll get sued by their victi^Wcustomers, for misleading advertising.
"I expected to be able to answer Python questions like Martijn does, but I didn't get 300k reputation!"
3
 
So, if you guys are ever in Edinburgh - I'm dragging you to The Black Fox
 
Was it good then?
 
11:17 AM
Not just saying it because he's my mate - but it was phenomenal
Put thought into absolutely everything
 
No, they just give him a commission for every meat source he brings them. Hence drag.
 
Oh look. I found Intrepid on Facebook. Time to stalk.
 
ETOOSLOW
 
heh heh heh..
 
11:26 AM
@Ffisegydd hehe, reminds me of: "If you're going to call the police every time you spot me in your bushes, this relationship is never going to work..."
 
hahah - that's so saved :)
@Ffisegydd wow... 8 (accepted) - 5 on that answer now... didn't quite expect that :)
 
Actually terrifying
 
/closed
 
11:38 AM
@Jon did you manage to have a quick look at refactoring a unittest example? You mentioned that the way I'd done them so far was weird/strange.
 
sadly no - sorry... I keep getting interrupted by idiots clientts
 
That's fine.
Gonna look at incorporating NLTK and extending some of our existing tests today. Some don't have a lot of coverage and don't look at the edge cases.
 
Getting a bit bored of stuff like: "Why does it show a warning saying 'The address you have entered is possibly incorrect'"
 
Can anyone see any reason for why the _get_xxxx methods are classmethods? github.com/sopython/nidaba/blob/master/nidaba/core/…
I could understand them being staticmethods maybe.
 
Umm.. no... that class just looks wrong :)
 
11:42 AM
What about it looks wrong?
(Apart from the classmethods)
 
Well one thing... why is it being souped multiple times?
 
Yeah if you made it an instance method you could just have self.soup or such.
@Zero is next on mine and @davidism's list as the person we need to overtake in rep.
Gonna be a while yet though.
 
You are competitive aren't you :p
 
Not really. It's more of a joke.
A JOKE I INTEND TO WIN!
 
11:57 AM
Haha.... I was just typing "as long as you win, hey?"
 
Okay people, I need you to stop ordering from my online 3D printer shop
I need to code goddamnit!
 
Where's your shop?
 
One of them is an online 3d printing marketplace
(3dhubs.com absolutely cracking site for buyers - pain in the arse for printers...)
 
Screw 3D printing - that's so last millennium... I'm going for 4D printing...
in fact... I'm already printing stuff that people will want, they just don't know to ask for it yet... but they get very expedient delivery :)
 
Nice. Is my 4D printer arriving today?
 
12:09 PM
it arrives at their premises at the point they've completed the order form :)
 
Life ain't nothin' but a 4D printout
 
Gotta pop out for a bit - rbrb for a bit
 
so. What's everyone up to?
 
Working out the best way to print this overly large chess piece that looks like swiss cheese
You?
 
Refactoring BS code.
 
12:24 PM
probably just gonna work on the starlist
 
Frantically finishing and documenting before 5pm
 
Anyone got experience with Beautiful Soup? Say I've got a load of HTML and I want to get all text that isn't inside <code></code> blocks. Wat do?
 
is BeautifulSoup something like elementtree?
 
It parses HTML. I've never used elementtree so can't say.
 
is it wise to move from RabbitMQ to Amazon SQS
 
12:37 PM
@SandipPingle please see sopython.com/chatroom for the chatroom rules.
In particular, please don't bring your newly asked questions here.
 
Also, your question is opinion based and will probably be closed.
 
no benchmarks showing SQS is slow
 
1 message moved to Trash can
 
but at same time its having high availability
over RabbitMQ
so I like to know is it worth to move to SQS
and also how can I use delayed queues using RabbitMQ if its preferable
 
another Green Bean
 
opinion based
unclear; they posted their homework assignment, but didn't actually ask a question about it
I feel like the system should stop you if you try to submit a post that is entirely contained within a quote box.
Not that it would have much practical effect. The OP would just remove it and resubmit.
 
12:58 PM
cabbage, can anybody pls answer my question
 
@SandipPingle no. It's opinion based.
 
@Ffisegydd it's fine to discuss here in the chatroom.
 
True. I was referring to his SO question.
 
If people actually have opinions about it, and provided Sandip doesn't keep hassling people to answer.
 
I don't know anything about RabbitMQ or Django or Amazon SQS or messaging queues or delayed queues. So, nope, I can't answer your question.
 
1:00 PM
@SandipPingle: if people can answer, they will. Until then, please don't tell us to answer it, that's not going to go well.
@Kevin It is usually me that adds the quote box.
I see a homework assignment, I put it in a quote box, because it is clear it is not their own question..
 
It's ok when an editor does it ;-)
 
okay, sorry I am a Green Bean.
 
Relevant research. Interesting information! Anyone want to by a set of Ninja Sturgeons in mint condition?
 
Protip: ninja 1000-gons can be repurposed as pizza slicers.
 
ninja tetrahedron
 
1:08 PM
Ninja klein bottle?
 
@Kevin I hear those are going to be kickstarted next year! Very exiting.
 
Works great for assassinating 6+ dimensional beings.
 
@Kevin they'll be based on this:
 
Lovely craftsmanship there :-)
@corvid Come to think of it, that's actually sort of a real thing.
Although the eastern version is more like an octahedron.
 
cbg again
 
1:18 PM
Greetings
 
what is a good cloud drive for cross-platform compatibility? I like onedrive cause it has so much space, but not gonna use google drive
 
OneDrive is meant to be crossplatform, but I haven't used on a non-Microsoft system so I don't know what it's like
Same with Dropbox
 
The other day I saw an advertisement for a "local cloud drive". "So... a hard drive with wifi?"
 
Ahhh... of course my project can't connect to the server... kind of expect that to happen when you've deleted the server... nice one Jon, nice one...
3
 
Smooth operator
 
1:31 PM
I see the appeal of having a single system in your home that facilitates wireless file transfer, but I don't think you need a specifically branded product to do it
 
@Kevin no, but it makes sense to have that for most people
Everything magically syncs on the wireless, and to your cloud provider as well
That's the dream
 
10 years ago I'd say it's a tiny niche, since most people with multiple machines are savvy enough to coordinate them themselves.
But these days everyone and their toddler has six tablets.
 
That's the vitamin industry for you
 
My parents think vitamins are a myth. Such a strange conspiracy theory to choose :-)
"But how can you just make a vitamin out of raw materials?" I don't know, dad. I'm not a vitaminologist.
 
Wow yeah, that's an unusual one. I mean, they're hilariously overhyped here in SA, but you rarely hear of people being entirely against them
 
1:35 PM
Anyone play around with Rust at all?
 
I don't even understand that question
@corvid no, but it sounds cool
I hope Rust gets a debugger called TetanusShot
 
@corvid I've watch "Let's Play" videos on youtube :p
 
More unittests!
 
Did you know that ninjas would occasionally rub their throwing stars in dirt, so that even a grazing wound might kill the victim by tetanus?
See, all our off-topic chat eventually ties back together to Python.
 
Of all the American sports. I think I like Ice Hockey the best.
 
1:39 PM
I'm quite partial to some college hand-egg
 
@Ffisegydd I like basketball
 
My friend is a big hand-egg fan. I've watched a few games of it. I dunno, I just like the grace and/or violence of Hockey.
 
They finally made a sport which has a few simple rules to make an awesome game. Not where the whole team switches mode every 20 seconds because of another bolted-on phase of the game
That's not a dig at ice hockey, more american football
And probably baseball
 
I dislike handegg because 30% of it is standing around, and another 20% of it is commercials and shots of the benched players.
 
1:43 PM
The handegg game clock counts down from 60 minutes, but it takes 2+ hours to complete.
 
All fair criticisicms, but when I was in Texas, I got quite into the community aspect (Go Longhorns!) of college football. I'm sure if I was just watching it from the UK - I'd be really bored and would switch over to the ruggers
 
I like that in handegg that you can tackle people who don't even have the ball.
 
Makes sense. I believe all sports are just an excuse to form a tribe of like minded people, even if the only thing you have in common is an arbitrary preference of team colors.
 
I know I pick my favourite sports teams based on the colours.
 
@Ffisegydd but they still get mad if you tackle the spectators :\ maybe that's why I got kicked off the high school football team
 
1:47 PM
@Ffisegydd Is... Is that not how it's done :<
Favorite animal mascot, then.
 
The Longhorns are really obnoxious. Whenever they score at home they fire a cannon. It's ridiculous
I was near the front and if i weren't an Edinburgh-ite; I might have shat myself when it went off the first time
 
That's amazing. Somewhere like half a mile away there's someones house that gets routinely destroyed whenever they score.
 
I expect they'd eventually catch on, and their next house would have an open-air atrium, through which the cannonballs would harmlessly sail
 
What they should do is set a 20s fuse on the cannon, and fire the cannon out of a cannon-cannon. That's spectacle.
 
Possibly landing in a designated cannon ball pit, or maybe just hitting the neighbor's house. Depends on the angle of re-entry.
 
1:51 PM
cbg all
 
yo
 
That's almost a Monty Python sketch right there...
 
Didn't they do a "the highway goes through our living room" sketch once? Or maybe that was a Looney Tunes gag.
 
stackoverflow.com/q/27317508/3005188 just waiting for the hammer to fall
 
Haha... didn't even need the hammer
 
2:07 PM
meta.stackexchange.com/questions/244534/… looks interesting. Shame the DE query times out.
 
@Ffisegydd I was looking at that last night
 
this is probably a dupe.
 
Also, the actual question is quite strange. "What should I do?" uh, do what you did in the second code block and not the first.
"Doctor, it hurts when I do this". "Well then, don't do that"
@MartijnPieters Yeah, seems good.
 
According to google, it is the only post that actually quotes the documentation on that on all of Stack Overflow, so I dupe-hammered it.
 
2:11 PM
Fizzy: "Doctor, it hurts when I breathe"
Doctor Kevin: "Well then, don't do that"
Thanks Doc.
 
@Ffisegydd Why are you still breathing then?
 
Because it turns out Kevin isn't a real doctor! DUN DUN DUUUUUUUUUUN
 
@Ffisegydd Have you considered a passive respiration system? Just let the atmosphere pass through your spiracles into your tracheoles. No breathing required.
 
@Ffisegydd a doctor in what exactly?
 
Oh, you know, a patchwork of different things... nonchalantly hides Frankenstein-esque abomination under a sheet
 
2:19 PM
It seems you were trying to combine a puppy with a corvid...
 
I wouldn't trust Kevin - I was taken to the Vet to get some jabs, came away one leg short and a slightly enlarged head
Dr Kevin. I have a stomach ache... Ahhh Mr. Clements - step over here, we'll give you a quick lobotomy!
Mind you - it probably would be quick - not exactly much to lobotomise :(
 
In my defense, the "pet inoculation for dummies" handbook was very unclear :-(
I knew I should have sprung for the deluxe video tutorial.
 
I guess the handbook's bloodstains lowered the price rather temptingly
 
@Kevin yeah well - you don't have to live with it do you!
 
I like to think of the blood stains as highlight marks, indicating which chapters the previous owner had the most difficulty with :-)
 
2:25 PM
@Kevin I assume you stuck to the same convention with your annotations?
 
Yep, gotta pay it forward.
 
not entirely sure how I am getting 5mb/s download at school right now
 
@JonClements Correct. I carefully ensure that my actions only have consequences for other people.
 
how does one save pictures on a filesystem such that no file name overwrites the other? Just make an md5 hash?
 
Can't you increment something?
 
2:35 PM
md5 hashes would collide eventually anyway.
 
I suppose, but I always see these weird hashes on sites that save a lot of pictures, wondering how they do that
 
(exercise: determine the likelihood of a collision after N objects have been hashed, assuming an even distribution)
 
Or generate a random number or whatever instead. Either way just test that it isn't in the directory already before you write, and generate another filename if it's there already
 
Though that's the same as MD5 effectively.
 
2:36 PM
Are you talking about how, like, imgur will give short names to all of their images?
 
I assume it's quicker than an MD5, depending on the file size
 
that would generate something like the following url? 4walled.cc/src/aa/aa85da74a3f3b354b31286901e865dda.jpg
 
They may very well be incrementing a base 36 number.
 
@corvid yes that's probably a UUID
I dunno
dithers
 
@Corvid does the name have to look nice, or just be unique?
 
2:37 PM
just to be unique, I'm basically just making a 4chan clone tbh
 
Why. Why would you do this? One is bad enough.* (* to be fair, a lot of 4chan is pretty okay,. it's just /b/ that you need to avoid).
 
OS's have ways to create "temporary" files that are guaranteed to be unique names, but they needn't be temporary... look at tempfile.mkstemp but just don't let it get deleted after
 
oh /b/ is terrible. I just want to make an image board, and it's easier to say like 4chan
 
>>> tempfile.mkstemp()
(5, '/tmp/tmpqw2zfs7j')
 
4chan's user base is horrible, but its software is neutral. Shouldn't be much harm in replicating it.
What could possibly go wrong? flash forward six months; the eastern seaboard is flooded and mutants roam the Ohio coastline
 
2:42 PM
some boards have useful wikis/stickies, but usually the threads are pretty dismal and redundant
 
In this question, the code highlighter colored the variable name do as though it was a keyword. I wonder why it's doing that.
 
@Kevin noticed something the other day re: highlighting on the mobile app - meta.stackexchange.com/questions/244600/…
 
Cabbage!
 
Got to love this place
 
2:53 PM
cbg @poke!
 
Walk into the room, mooching around (looking for some kapton tape) and someone bursts in "DON'T MAKE A SPARK"
 
@IntrepidBrit I was wondering if that was a dramatic way of saying: "Guys - you might want to get the air freshner" :)
 
We need a room Christmas party!
 
@JonClements Haha, no. Apparently they're gassing the batteries and apparently don't need much provocation to explode
 
@IntrepidBrit if you suddenly go silent... we know what's happened :(
 
2:56 PM
1 message moved to Trash can
whistles
 
Stop this censorship!
#occupy-sopython
5
 
@Ffisegydd haven't you read: The Puppy Who Stole Christmas?
 
I'm well out of that room now!
 
To be fair. I hate Christmas. Well, I hate the commercialisation of it. And how the Bath Christmas decorations got put up in October. But for an excuse to get drunk on Christmas drinks? I'm up for that...
 
@Ffisegydd wait... one needs an excuse to get drunk? I must have missed the memo...
 
02:00 - 15:0015:00 - 00:00

« first day (1511 days earlier)      last day (3441 days later) »