« first day (1382 days earlier)      last day (3567 days later) » 
00:00 - 15:0015:00 - 22:00

12:43 AM
cbg
 
morning
 
cbg
 
wb @Zero
 
Wotcha
 
to make a gh-pages, you just make the branch and push it? Can you change where it looks for the index.html?
 
12:53 AM
these 2am conferences are always fun... oh so much fun...
thankfully, it's a text only one - cos must look like shite without a shower and that much sleep
 
Whose morning is it?
 
my morning, everyone's evening or "proper" morning - I'm just the muppet in the middle trying to accommodate
 
it's always morning to me :|
 
2 am conferences?
0.o
 
@Ahmad timezone diffs :(
 
1:02 AM
:/
where are the others from?
 
-6, -5, +9
 
uh, yeah then it's probably pretty difficult to get a time that suits everybody
 
@Ahmad anyway, just listening to some music while waiting... (everyone's only 7 mins. late coughs) how you been ?
 
1:26 AM
what a big f*ing surprise, no one's turned up again
 
@jon fine fine and you? just watching 21 jump street
what? really?
o.0
 
@Ahmad looks interesting - might have to try that
 
2:00 AM
found it!
lost the vinyl to that somewhere
 
2:13 AM
enough time waiting... rbrb
 
 
2 hours later…
4:38 AM
cbg
what is the criteria to get into hackerschool @ hackerschool.com
 
 
1 hour later…
5:56 AM
cbg guys
 
cbg
 
6:30 AM
is this spaghetti code?
 
nope
in a glance
 
6:44 AM
or at a glance
not sure what's the correct one
 
6:56 AM
At a glance
 
aha, thanks
 
7:11 AM
CABBAGE
@tilaprimera I would do differently - would not have the algorithms as methods for the point storage...
and ofc PEP8 :D
@vaultah your glance fails you
yes, that code is indeed wtf :D
def calculateCentroid(self):
    sumx = 0
    sumy = 0
    for i in xrange(0, Coordinates.size):
        sumx += Coordinates.coord[i][0][0]
        sumy += Coordinates.coord[i][0][1]
    Coordinates.centroidx = sumx/Coordinates.size
    Coordinates.centroidy = sumy/Coordinates.size
 
cbg
 
@tilaprimera not a spaghetti code, it is a different term...
 
what do you recommend?
 
that you do things right
 
ofc
 
7:15 AM
I mean like not according to some design pattern but that you actually would notice that you are not using objects
 
i mean about point storage
 
cabbag people. Is there a bash room in here?
 
but you are stuffing everything in the class
@HakanBoztepe you can bash here if you want :D
but now need to go
 
or is it language-agnostic enough to be discussed everywhere?
 
what is better way of using objects?
 
7:17 AM
@Antti Haapala hahaha lol ok :D
 
thanks @AnttiHaapala
 
I'm creating a pseudo 3d game in bash. Yes I know it's masochist... But I want to be featured in hackaday :D
 
7:33 AM
cbg
 
8:03 AM
cbg all
 
cbg @Ffisegydd
 
what does cbg stand for?
google tells me " CBG, Car Buyers Guide. CBG, Canadian Brigade Group. CBG, Corticosteroid Binding Globulin. CBG, Comics Buyer's Guide. "
none of these make sense...
 
@ZeroPiraeus oh, thanks. Potato?
 
Struggling valiantly on ;-)
 
8:08 AM
@FlorianMargaine banana
 
@Bestasttung banana is life, banana is love
 
yep
 
@Florian Margaine It stands for "Cabbage" and is used in the Python room to greet each other, as in "Howdy!".
 
cbg
@FlorianMargaine welcome to pythonland
 
8:38 AM
always a pythonic way to do things, even hello
that's great :)
 
9:02 AM
I want to know if round cornered button with pictures are possible in Kivy
 
I want a unicorn :(
 
So for asking a question again, but it's short & I feel isn't worthy of SO.

Anyways, in my Python-Flask I want to execute a method at a pre-defined time (say nightly).

To achieve this, I have opted to call the method inside the __init__ of my app. This works fine, but seems a bit hacky. Is there a better approach?
 
Why not set up a cronjob to call a script?
 
well, there's other services that would do the same sort of thing (one will check every 30 seconds). They're both a key aspect of the web-service, but could be made into cronjobs I suppose.
@Ffisegydd - To answer your question directly -- i'm not sure. At the time, it seemed like a sensible idea to do it in Python since all the 'services' do a 'similar' sort of thing (all read from the same settings file, and send SMS messages depending on their results)
 
@jawrainey well you can set up cronjobs via Python packages so you could build it all in together.
 
9:12 AM
I'm only asking if it is possible?
 
@user3620828 I don't know Kivy so cannot answer your question.
 
@jawrainey see plan.readthedocs.org for a nice Python package which allows you to control cronjobs, might be worth a look. But yeah I see your point that it might be better to keep it all "within the web service"
 
cbg all
 
cbg @Paolo
 
9:21 AM
@Ffisegydd -- Thanks, i'll have a look.
 
cbg @MartijnPieters
 
9:43 AM
cbg all!!!!
 
user559633
9:57 AM
cbg all
 
user559633
aint no party like a cbg party because a cbg party is peas
 
user559633
the same, fizzygood, the same.
 
oh the new sopython theme is neat! great work!
 
Doesn't look too shabby. We'll probably change the colour theme itself soon as it's been commented multiple times as being very Ubuntu.
 
10:05 AM
@Ffisegydd -- Hah! I was going to say it looked awfully similar to Ubuntu.
 
Well we're using a free bootstrap theme called United
Which is based on Ubuntu colours.
It's the only one we could find that matched the orange in the logo
 
@Ffisegydd -- Regarding the site:

I think it would be more intuitive for the answers on the 'common questions' page to 'drop down' and show the answer when clicked, rather than be taken to another page.

What are your thoughts on that?
 
0
A: 3 impossibly intelligent mathematicians

Antti HaapalaThe answer is 73 and 64, according to the program I wrote. We have quite a many possibilities that are narrowed down as the information is given, but only final Paul is given the product 4672 and thus cannot know what the numbers are, as possible numbers are (146, 32), (73, 64), (584, 8) and (...

solved the damned puzzle :P
 
@jawrainey yeah I see what you mean. Eventually we'll have full searching with tags and a search box etc so in that case it might make more sense to have an individual page. Plus some of the questions could have rather long example bodies. I'll put it on the Trello page anyway as something to think about.
 
@Ffisegydd should orgnaize the common gotchas
is is is chaining or isnot operator is way more common than some obscure generator, or dunder names in instances
 
10:18 AM
@Antti ok I've put those two examples to the top of the list. Eventually I'd like to add a TOC to them anyway. We've got a markdown-toc addon, just need to find out how to use it.
 
@AnttiHaapala Nice!
You could use next(iter(setobj)) instead of list(setobj)[0] perhaps. Not that it makes a damn bit of difference..
 
@MartijnPieters I have headache even without tuning that code :d
 
2 days. Nice one, no serously
 
user559633
does stackoverflow allow affiliate links in posts? stackoverflow.com/questions/1345506/…
 
You are missing a last ) at the end, .format() is closed but not print().
 
10:24 AM
grr
fixed
works from copy paste and gives the solution
 
@AnttiHaapala All very interesting
 
@AnttiHaapala Exactly, which is why I knew that it was just the ) missing. :-P
 
now I should tell myself to repeat after me: "do not edit code in the answer editor without testing it"
 
10:48 AM
Someone got pranked:
20
Q: Weird, spammy message I never sent has appeared in my "sent" box

Maurice RickardI've received email confirmation from careers.stackoverflow.com that an application message--supposedly from me--has been received by an employer. The email confirmation went to one of my email addresses, but not one that I've used here. (It's my first name at a major email service, so it's an ...

 
Or the OP has multiple personality disorder.
 
11:12 AM
That's it! The OP's subconscious has adopted Maurice Moss as an alter-ego!
 
11:51 AM
It turns out to be something different:
The prankster used maurice@[common email provider].com as the from address to prank the company, using a fake Careers account to send it.
But that email address actually exists, the OP received the email confirmation, clicked the link to see what this was about and as they were logged in on Careers, the email address was automatically associated with their account.
Now it looks as if they sent the prank while logged in.
 
ouch
 
I didn't know you could anonymously apply; perhaps the confirmation email the OP received actually triggered the sending of the message; e.g. had the OP not clicked the link in the email the company never would have received the prank application.
Oops.
 
Either way, it shouldn't happen ;)
 
12:21 PM
So are you tired of scrolling through endless photo albums in Facebook just to find that perfect photo of the hot guy or girl you just became Facebook friends with? Stop wasting your precious time! Pikinis empowers you to easily find and store all your favorite photos on Facebook and makes it easy to find new ones when your friends post them. Get started now!
 
ughhhh standard format is mhtml not csv whyyy
(moin cabbage)
 
12:39 PM
Omg, I need to continue answering. Currently I got nothing to compensate the loss of rep due to bad answers..
(of other users)
 
1:09 PM
My flatmate, Rodrigo, is a keen amateur photographer. He was away over the weekend. We discovered last night when he got back that the delightful young lady who took my cards and phone also took his brand new MacBook.
This morning, as I was about to let him know that I ought to be able to reimburse him for that by the end of the week, he told me that he's discovered she also took a not brand new at all hard drive with all his photos for the past ten years (since the birth of his daughters). I'm not sure I've ever had such a cold, clear desire to actually kill someone.
 
That's awful.
Seriously.
 
It's seriously £$^£ed.
 
As a (sometime amateur) photographer I can feel the pain.
 
Mind you, he should have been making backups, no excuses
 
Yeah, somehow I don't think that's exactly what he wants to hear right now :-/
 
1:11 PM
How did the woman get into your house? Did the police find her?
 
I suspect that Zero is a bit of a playaaa
 
More played than player on this occasion, clearly.
 
@ZeroPiraeus Aye, you're right. Point him towards Crashplan (or something that has versioning for free) for future reference
@ZeroPiraeus But mebbe wait a few days
 
My phone was wiped before I even got a chance to remote-lock it ... obviously a professional at this.
 
@ZeroPiraeus Clearly. What kind of phone out of interest?
 
1:15 PM
Wiping an android phone is easy
 
Moto G (first version).
 
Especially samasung
I've uploaded OSes to Samsung phones before. It does a complete wipe of software but not the contacts and other data
All apps including Anti-theft software gets wiped
 
The only passwords on it were for email accounts (changed now, obviously), and Stack Exchange. No other sensitive or unique data.
 
@ZeroPiraeus She didn't get your keys did she?
 
They're trying to bring in a hardware based "lock" that can't be wiped
 
1:19 PM
@IntrepidBrit No, that's one silver lining at least.
 
(Slight aside while @IntrepidBrit is here: thedailymash.co.uk/news/business/…)
 
@ZeroPiraeus That's something at least. Mind you, there's nothing stopping her from making a quick cheeky mold for later
Because you really need to worry more about this sort of thing...
@Ffisegydd It's called Tennant's Super
 
Yeah that's true, if she is as professional as she sounds then maybe think about changing locks. Not sure.
Will insurance pay for the Macbook?
 
@Ffisegydd I doubt it. I presume you invited her into your home @ZeroPiraeus?
 
No, she'd have had to pickpocket and then reverse pickpocket me to get at the keys.
@IntrepidBrit Yeah.
 
1:25 PM
can you set username and password in gitconfig so you don't have to type it again and again?
 
@ZeroPiraeus Well that's a relief. Reminds me I need to set up my remote webcam security recorder xD
 
@Crow yes. Well do you mean for Github for example? In that case you can use ssh keys.
 
@Crow I wouldn't though. (personally)
 
Pretty sure Rodrigo doesn't have insurance (and even less likely he'd already have updated his policy re the MacBook - he'd had it less than a week.
 
@Ffisegydd I have the ssh keys uploaded, but it still asks for authentication
 
1:27 PM
You're sure you've updated the keys to Github and also added your keys to ssh-agent?
 
Mornin' @Jon.
 
@Zero sounds like you're having "fun" at the moment :)
 
Yeah, it's a barrel of laughs in Casa Zero at the moment :-P
 
@Crow you are doing it wrong(tm)
 
1:33 PM
so it would seem...
 
gotta run for a bit, rbrb in a bit
 
@ZeroPiraeus daym
 
on the sopython repo, I see this a lot. What is it's purpose?
@bp.record_once
def register(state):
    from sopy.canon import views
would there be anything wrong with just doing from sopy.canon import views?
 
is that some flask related...
 
@Antti Yeah
 
1:42 PM
@Crow flask mutates data on the module level..
 
1:54 PM
Cabbage folks.
 
cbg @Games
 
@Ffisegydd How ya been?
 
Blergh. Tired. Trying to find somewhere to move.
I hate estate agents.
 
In Bath?
 
Why are they always so unbelievably sleazy?
Yeah
 
1:55 PM
why don't you just become a nomad?
 
I thought you lived in your lab :P
 
why do you have real estate agents in your bath :P
 
you know why ;)
 
@AnttiHaapala Because he tried to get into be with them, and it didn't work.
@Crow I'm a nomad, at different points in time, I reside in a different corner of my room.
^ that is what we should do
 
@Crow, @GamesBrainiac this was a so called rhetorical question
 
2:00 PM
@AnttiHaapala We were just hypothesizing.
 
oh... so then you don't want to know about... the ritual?
 
@Ffisegydd Did you scare you off little guy?
 
hmhmmh
 
@vaultah If you think Django is "heavy and slow", you're doing it wrong ;)
 
does 100 initial rep count towards the 200 per day??
just wondering about puzzling.se
 
2:03 PM
@GamesBrainiac Ahoy!
 
@IntrepidBrit I see you're happy today. You're finally coding in Python?
 
@GamesBrainiac Yep - away from "the excel" and handheld devices
I'm coding for legacy systems, but it's in Python
And remarvelling at the sheer versatility and sexiness of git
 
Yea, did you know Aaron Schawrtz was a pythonista?
@IntrepidBrit shit bro, where have you been all this time? No version control whatsoever?
 
@GamesBrainiac No, I've been gitting it up. But just being doing incremental, uninteresting basic branching
 
2:06 PM
@IntrepidBrit If you've got a mac, use Tower.app
it makes git so very easy to use
 
@GamesBrainiac Ew, no. Keep that mac away from me!
 
@IntrepidBrit Hey, macs are cool B-) :P
 
bah. So many questions bout this sopy shenanigans. on auth/commands.py, how do you actually run one of these commands?
 
(I'm back to my dizzying array of decentralised systems, all running different versions of code, merging fixes between different servers. I don't think I would have been able to get my head around that shizz 10 years ago)
 
@IntrepidBrit Yikes, that sounds complicated.
 
2:08 PM
@GamesBrainiac It is, but also easy
 
Once you get the gist of things, right? :P
 
Pretty much
 
@IntrepidBrit you would have,
@IntrepidBrit if you had git...
but 10 years ago you were using CVS :P
 
@AnttiHaapala Probably SVN. Crying every night when I was trying to do a merge
 
@Crow which in particular?
 
2:11 PM
I actually ever merged 1 branch with SVN..
Or actually I cleaned the mess
the branch was merged backwards or something
 
@Ffisegydd any of them, I am trying to implement something similar, but as a method which will populate the database with fake data
 
so all the changes in the main branch were reversed and the branch was applied backwards or so
SVN is so easy, it is so intuitive, and branching is so super easy
yes
 
@AnttiHaapala I think my sarcasm meter just exploded
 
@Crow well for this you simply do sopy auth load_user USER_ID in the command line.
And it'll load the SO user based on their SO USER_ID and then commit them to the database.
 
always when someone says that SVN is good bc bosses understand it, and it has so good abstractions, I sort of almost do not stay in my skin
 
2:14 PM
hm. is reading a 7mb html file with beautiful soup supposed to be slow as hell
 
@Al.Sal prolly
 
@Al.Sal <trollface> you should use regexp
 
DSM
Morning cabbage to all.
 
@Games that Tower.app looks good but $59!?
 
@IntrepidBrit maybe i should scrap it and just use vba regex as well
 
2:15 PM
@Ffisegydd Yikes. legit it is then.
@graffic Welcome :)
 
@Games just been using the Pycharm built in parts.
 
@GamesBrainiac Hi!
 
@Ffisegydd Yup, their stuff is pretty neat. I just miss the selective commits.
@graffic Glad you could make it from twitter.
@tristan Hey man! How's school?
 
@Al.Sal I think you should try to implement it in assembler
@Al.Sal (but on a serious note, going to risk being set alight here - but depending on what you're gunning to do with beautifulsoup, regexps might not be a bad idea. Are you looking for something very specific)
 
@GamesBrainiac At least to say hello :D
 
2:18 PM
@graffic Yup, so we were talking about testing. Have you tried anything other than py.test?
 
user559633
@GamesBrainiac hey! it's not exactly school, but good
 
@IntrepidBrit somehow it feels regex are always a bad idea unless you type them in the command line interpreter for one use
 
Hits @IntrepidBrit on the nose with a rolled up newspaper. Bad!
 
user559633
i plan on pushing the first of the code for my network filesystem today, then i'm going to learn some c++ this afternoon
 
user559633
how's the book?
 
2:19 PM
@IntrepidBrit You can use regex inside beautifulsoup
 
@Ffisegydd You've been spending too much time with @JonClements ...
 
@GamesBrainiac as a runner? nose, but the multiprocessor extension didn't work very well. That's how I discovered py.test It works perfectly.
 
@tristan Going slow, I think I have writer's block. It turns out I'm a tough arse to please.
@graffic Yea, one of the main reasons I initially used it was because I wouldn't have to use self.assertequals ....
 
@graffic I agree that you shouldn't use it as the first port of call. But it still has its uses. Rules are made to be broken after all. You just need to know when and why
 
@GamesBrainiac selenium tests are too slow to run one by one
 
2:21 PM
@IntrepidBrit eh, it has all these weird-ass functions in the beginning and whatnot. it's this enormous mhtml file that has data contained in it
 
@GamesBrainiac But if the processing time for bs is prohibitive, might be problematic
 
@graffic I'm about to dive deeper into selenium, there's a good book out by Percival.
@tristan C++, well if you do make sure to get a good book (I recommend Modern C++ from the prag. bookshelf)
 
@Ffisegydd wait. So that is set up by the setup.py in this line? entry_points={'console_scripts': ['sopy = sopy.manage:cli.main']},
 
@IntrepidBrit You mentioned beautifulsoup, so you might be doing scrapping. I've done small scrapping stuff and that library saved my day.
 
@Crow yes I believe so (but I only believe so, I'm not certain).
 
user559633
2:23 PM
@GamesBrainiac sure. i want to learn enough to do some game programming
 
@GamesBrainiac I've used selenium with this library: splinter.cobrateam.info
 
@tristan eh? I thought you were making distributed things?
 
@Crow it also only works because as you can see in the Develop section you've install sopy using pip install -e ./sopy. Again this is my thought, not absolutely sure.
 
@Al.Sal Does it start with a fixed decorator and end with one? Could be "trivial"?
 
I guess I'll have to wait for davidism to get on to bother him about that line... that thing has been confusing me for quite some time
 
user559633
2:24 PM
@GamesBrainiac yeah, but writing filesystem and distributed stuff is boring.
 
@Ffisegydd The link that @graffic pointed to seems like something jon cooked up :P
@tristan I feel ya, but why game programming all of a sudden?
@tristan Also, why not scala + LWJGL?
 
user559633
i've always been interested, just no time. i'm going to write a little isometric world.
 
user559633
idk, i haven't heard any compelling arguments for it and i know there's a buttload of C++ engines
 
@tristan Well now is a pretty good time, since C++ has gotten a helluva lot better.
 
My friend is learning game programming at the moment, think he's going to start playing with the CryEngine.
 
user559633
2:26 PM
cool, thanks @GamesBrainiac :)
 
@Games did you ever get round to thinking about book suggestions for machine learning?
 
user559633
i don't want to write any FPS stuff, just little isometric worlds a la Fallout 2
 
@Ffisegydd That's some cool stuff :D
 
user559633
suggestions for C++ IDEs?
 
user559633
was going to do xcode
 
2:28 PM
@IntrepidBrit looks like what I need is a big list of <tr></tr> tags...table as wel
 
@tristan AppCode supports C++. And also JB are working on a full C++ IDE
 
@tristan emacs
 
user559633
I wish they'd hurry up on a real C++ IDE. I don't think I care about the objC stuff in the beta of appcode
 
user559633
@FlorianMargaine heh, i'm a vim guy
 
@Ffisegydd CryEngine has a pretty steep learning curve. At my last school, we made a few machinimas with CryEngine
 
2:31 PM
@Al.Sal Then you've probably got to go the way of BS
 
@tristan I'd suggest xcode.
appcode, sorta sucks.
@Ffisegydd Support is somewhat lacking. Its going to get better when they finally release their C++ IDE.
 
oh dur... ffisegydd, I see what I did wrong and why mine wasn't working
 
That was a fun conversation with a client :)
 
story time? :O
 
@JonClements jon: woof, client: meow
jon wins
 
2:34 PM
@JonClements fun, or "fun"?
 
Client: "We want to do this..." Me: "No you really don't, because...." (lots of explanation for about 10 minutes about why it's not a good idea) Client: "Oh ok, so it's a bad idea then, why is that?"
facepalm
 
Ah. Triple-quoted then ;-)
 
that sounds like most clients on a good day, really
 
So, managed to get away from pointless albeit paid work again
too busy with other stuff... otherwise, I wouldn't have argued so much :)
 
Is it me, or are some of these questions just dumb? toptal.com/python/interview-questions#.
 
2:38 PM
@GamesBrainiac on that first question, aren't you not supposed to put functions in list comprehensions?
 
@Crow precisely.
 
cool, got that without even looking at the answer. I think generally they make those methods with yield for this kind of process.
 
For the second one, you should always do self.__class__.<class variable>
@JonClements Luckily, that hasn't happened to me, yet.
 
in the second one, won't it just reference the first every time if the variable is not set? That's how class inheritance works in python if I am not mistaken
 
Yes, thats how it works in 3, but not in 2.
 
2:44 PM
Iunno most of these questions seem a bit like "why are you doing that to begin with?"
 
Exactly. It feels like "unidiomatic python"
 
wow - it's warm again today...
 
really? It's cool here, fall will soon be here!
 
@GamesBrainiac toptal... selling your flesh through 3rd parties
 
cbg @Antti and @Kevin
 
2:48 PM
Yo
Whew... I've been wrestling with a buggy code analysis tool all morning. So many instances of "issue detected on line 1"
To be fair, that number is only off by about 300 lines
 
@Kevin seems close enough....
 
Yeah, that just encompasses the entire file, no big deal.
 
of course, "issue detected on line 1" could be a reference to itself
 
And never mind that it reports "possible null dereference", which could conceivably occur on any line that ever does someObject.someProperty
@JonClements The first line of the error report is erroneous, but if it's erroneous, then the error report is correct in reporting it. But then there's no error. It's a paradox.
 
@Kevin that explains the universe keep rebooting then... stop using that damned tool!
 
2:53 PM
Did I mention that this was all in VB... Yeah, fun morning.
 
thankfully haven't had to deal with VB in ages :)
had to write some VB Script for an excel thing, but apart from that... haven't had the pleasure :)
 
It was my first language so I can't entirely hate it.
 
Returning values by setting the result to the name of the function.... umm....
 
Yeah, it's pretty wacky. I don't think it's the first language to do that, though
 
DSM
That takes me back.
 
2:59 PM
@graffic are they that bad?
 
00:00 - 15:0015:00 - 22:00

« first day (1382 days earlier)      last day (3567 days later) »