« first day (1504 days earlier)      last day (3430 days later) » 
00:00 - 21:0021:00 - 00:00

12:08 AM
@MarkF6 did u find it
 
@MarkF6 That would be because matplotlib.axis is a module, and you tried to call it.
 
got it
sorry :)
 
(that's a ridiculously overengineered pastebin, by the way - it just showed me some stupid spinning circles for over a minute instead of your code. Use something like dpaste.com instead)
 
ok
:)
 
is unaccountably grumpy this evening
Actually I can account for my grumpiness: I just watched an episode of The Sopranos that was almost entirely taken up by a dream sequence. I hate dream sequences.
 
12:14 AM
@ZeroPiraeus Well, it has a pretty cool editor, and video chat, and stuff.
 
As for video chat ... no no no for the love of g_d no.
@poke ... yeah. Editors in pastebins I can do without: they just make me think maybe the person who pasted the code in question might have gone and changed it while I wasn't looking.
As a stylized capital letter floating serenely above a sea of crimson, I have no need of moving images.
 
@ZeroPiraeus It’s not just a pastebin though.
 
... and therein lies my complaint :-P
cbg @holdenweb :-)
 
 
2 hours later…
2:18 AM
Math knowledge applied. That makes me happy.
 
 
2 hours later…
4:39 AM
Could someone please help me out with my codes? I'm desperate ><
0
Q: inserting missing values into excel via a reference excel by python

crypatixreference file: fill_in: basically, the you're taking the values in col 1 (left) and comparing them with the values in the reference file (col1). If the values are an exact match, it will take the value in col2 from reference and place it into col2 of the fill_in file. (below) So far, my code...

please please please please
 
5:04 AM
cbg
 
5:21 AM
cbg @Jerry
 
cbg
 
5:45 AM
Cbg
 
6:22 AM
Cbg
 
6:34 AM
cbg
 
 
1 hour later…
7:56 AM
With my newfound Flask enthusiasm, I'm enjoying this series: realpython.com/blog/python/…
 
@Robert I found blog.miguelgrinberg.com/post/… very good.
He also has a book written on Flask which is along the same lines but goes into more detail
 
Looks like I'm the only one here who prefers Bottle :/
 
8:24 AM
@Ffisegydd cool thanks
 
8:36 AM
Cbg
How to print only the strings which are captured by group index 2?
re.findall prints all the strings which are captured by group 1, 2
But i want only strings from group 2.
 
9:07 AM
@AnttiHaapala thanks :)
 
@RobertGrant thanks :)
 
9:19 AM
CBG all
 
Do we have a dupe for this one?
 
@JonClements cbg
How have you been ?
 
@d-coder cbg - banana melon... potato?
 
Banana
Add up few more words for salad language. We could all be talking fruits and veggies :)
 
Soon the Salad language shall be the world's lingua franca!
 
9:31 AM
For the following question stackoverflow.com/questions/27185294/…
we can also write like this ?
def fun(a=0):
        print a
fun()
fun(4)
 
@d-coder don't think that's what the OP is after...
right... need to crack on with a couple of emails... rbrb in a bit
 
9:56 AM
@Martijn didn't realise that about the list.keys() method. It also backed it up with the {...} but I suppose it could be just the OP being lazy.
 
hi guys :)
 
Sup
21
Q: Random disconnections

Florian MargaineMore than once a day, Stack Overflow disconnects me. I may have not come back in an hour, or I may be chatting; I may have used another device to connect, or I may not; I suddenly will get errors about not being logged in when sending messages in the chat, or being simply disconnected on Stack Ov...

I'm not alone -_-
 
10:12 AM
cbg
 
Boom 7500. 2500 to go...
 
@Ffisegydd only 301025 left to get ahead of Martijn ;)
 
Alas, Martijn makes more in a month than I've made in a year.
 
cbg @Ffisegydd!!!!!!!!!!!!!!
 
@Jon BRIIIIIIIIIIIIIIIIIIIIIIIIIIANNNNN!!!!
 
10:26 AM
CBG
 
I re-implemented that capitalisation function using unicodedata.category and namedtuple, based on yours and Intrepid's suggestions. github.com/sopython/nidaba/blob/master/nidaba/features/_util/…
 
@Ffisegydd I removed that comment again because I realised you were talking about the naming of the object.
 
Not extracting all of the different categories yet.
Though looking at it again, I realise I could use _make rather than (*[...])
 
@Ffisegydd I like the left over print(total) in there :)
 
What left over print total? You must be seeing things! Refresh your eyes (and your webpage!)
Annoyingly + is a math symbol (Ms), whilst -, /, and * are not.
sonofacabbage stole my accept...
 
10:45 AM
Can not be reproduced without using the whole Windows - Linux setup the OP has, and they cannot reproduce it with a different editor anyway.
@Ffisegydd get back at them by finding a dupe target..
I'm sure that is a dupe anyway. :-P
 
11:36 AM
Cabbage!
 
cabbage
potato
 
@Ffisegydd I don’t remember the reason atm., but I didn’t like that series that much.
bananas, melon
 
I think the book was better than the tutorial. I think corvid read the book too.
 
fair enough :P
But as I said, I also don’t remember my reasons…
 
Yeah. I suppose different tutorials suit different people.
I only really read it so I could half-understand what davidism was going on about
 
11:41 AM
haha :D
 
need help with this ..
 
@Swordy funnily enough I was just looking at some regex :P
 
I don't need to match "don't match"
 
I need to match url links
 
I guess i've seen many questions on SO regarding matching URLs..
 
11:48 AM
I've put together my test case on regex101, just need to start writing the regex
 
^ lets begin
u could end up with /7528
playing around.. :P
 
Hah. I'll do it after lunch, though if you want to play around with it, then let me know. It basically needs to match stackoverflow urls
 
@Ffisegydd urls don't have whitespaces i guess.. regex101.com/r/bA8wF8/3
 
You're missing the final case though, where http:// isn't included.
 
ohh dint see that
 
11:56 AM
So http:// should be 0 or 1
 
@Jerry you're a legend.
 
@Jerry u again!!
u need to help me sort my problem..
 
@Swordy check rev 17
 
11:57 AM
I'm getting mad with that big train of regex..
and how could i make the ":" optional??
Adding a question mark makes it crazy..
 
@Ffisegydd (https?://)?(www\.)?stackoverflow\.com/q(uestions)?(/\d+/[\w-]+)?
 
then that means you don't know where to stop
 
@poke yeah that looks similar to Jerry's, cheers. I will come back after lunch and think about it some more. Looking to match urls in strings for Nidaba.
 
It’s a bit stricter in that it will only match question links
 
Yeah. I'll modify it for answer and user links as well.
 
12:01 PM
Ah, then your test case was just bad :P
 
well, if you consider the statement It basically needs to match stackoverflow urls, then it wasn't that bad =P
 
I only consume links, not text.
 
and let me speak , wait..
If you consider the statement I need to match url links , then mine wasn't bad as well (except for the inverted commas part)
 
if it's any url, then there's much more to match than just http and www
 
I'll raid your village base for that..
 
12:07 PM
 
Gah.
I wish people would read the question rather than downvote.
Or at least tell me why they think my answer is so unhelpful.
 
all answers have downvotes.. :D
The OP is trolling I guess..
 
@poke my test cases were fine :P regex101.com/r/bA8wF8/6
My problem statement "It needs to match stackoverflow urls" may have been a bit crap though :P
 
@Swordy no, I downvoted one of the answers because it doesn't address the question.
 
We also had the idea of matching any URLS, but as Jerry said that's much more involved and I can think about that later.
 
12:12 PM
and my downvote is now un-done.
(as in, the downvote on my answer is gone)
voting is otherwise anemic today.
Two votes so far, and two accepts.
 
And when I said "I'll modify it" I meant "I'll have 3 regexes, one for each" I understand now why you said the cases were bad :p and now I really am going to lunch
 
@Martijn everyone's out shopping or something? :p
 
@Swordy what trophy range are you in?
 
12:27 PM
1398
 
@JonClements ouch, sounds painful
ok, I can raid yours instead then :3
 
trophy range?
/me finds some interesting question
/me scrolls down to answer
/me finds an answer
/me sees that the answer is by @Martijn
/me closes the tab
 
I flagged it instead..
 
@poke You forgot a step there: downvote the answer because you don't like it.
 
I don’t do such things
I rarely downvote, and usually only really wrong answers.
@MartijnPieters I don’t even want to know why someone upvoted that one…
 
@poke it's a game poke, the number of trophies gives your worldwide ranking
wait no, the number of trophies is the basis to calculate your ranking rather
 
uhuh
 
12:52 PM
not sure if you heard of it, but there're quite a lot of ads about it on the net. The game is called clash of clans and I started playing that recently following a cousin's request
 
I think I heard that name somewhere.
Can I get some more upvotes on this comment so that it’s clear that naming a module .something.py is not a good idea? wim’s answer is lacking a bold “DON’T DO THIS THOUGH” imo.
Thank you :P
 
watermelon
 
We need a course “How to read error messages”…
 
@poke: it is now translated, but it reads like a comment on an existing answer instead.
 
1:09 PM
Is it machine translated?
It seems like a very literal translation.. Who would do that? Write an answer in French first, and then write literally the same stuff in English again? Seems unlikely…
 
hi @poke
 
Hey nish, thanks for coming. I think it’s a bit easier here than in the comments of my answer.
 
@poke there wasn't much text.
 
Alright, yes it would be better here
So, I wanted to know if I need to tweak the initializer of base class?
becuse when I try calling it without kwargs
super(order_order, self).__init__()
I am getting the same error
 
Do you actually have __new__ overridden anywhere else?
 
1:18 PM
No
I am not calling it explicitly
 
I mean whether you define one in any type, i.e. def __new__ …
osv.osv is from OpenERP, right?
 
yes
its from openerp
no I have not defined it
 
Which version of OpenERP do you use?
Looking at this line it seems that models are not supposed to have constructors with any parameters.
 
1:37 PM
asks for 'a project', an external resource.
 
cbg once more
 
cbg
 
@nish Looking through some examples in the source, it appears that instead of overwriting __init__ and using the constructor, you are supposed to use the create method instead.
 
((?:https?://)?(?:www\.)?stackoverflow\.com/q(?:uestions)?(?:/\d+/[\w-]+)?) there we go. Thanks to poke and Jerry for that. Now just to make more for answers and users.
 
1:53 PM
@Ffisegydd That won’t work for short-links
 
Yeah just saw that.
It also fails on http://stackoverflow.com/questions/tagged/python (i.e. it matches up to the tagged/... but shouldn't match it at all (I just want individual questions))
 
(?:https?://)?(?:www\.)?stackoverflow\.com/q(?:uestions)?/(\d+)(?:/[\w-]+)?
 
Awesome.
 
(?:https?://)?(?:www\.)?stackoverflow\.com/(?:questions/(\d+)/[\w-]*?/(\d+)(?:#‌​\S+)?|a/(\d+)/(\d+))
^ Answers.
 
Close. It needs a little bit extra as sometimes an answer can have a #xxxxx on the end
 
2:02 PM
That’s already included
(?:https?://)?(?:www\.)?stackoverflow\.com/questions/(\d+)/[\w-]*?/(\d+)#commen‌​t(\d+)_\2 <- comments. You need to check those before answers.
Uhm. For some reason, chat included some white space after the # in that code.
(?:https?://)?(?:www\.)?stackoverflow\.com/(?:questions/(\d+)/[\w-]*?/(\d+)(?:#\S+)?|a/(\d+)/(\d+))
 
Ah yeah I see, deleted it and now it matches.
 
You could also use (?:#\2) to make it more strict, but I don’t think that’s necessary. Not doing it allows us to match even answer urls that have a broken anchor.
 
Hmm.
The question regex is matching some of the answer/comment urls. Unfortunately I don't think we can add $ to the end as it won't necessarily be the end of a string (in the case of a <a href="..."> for example)
 
Is it ok to put small binary files for testing under version control?
 
Nothing is true, everything is permitted.
 
2:14 PM
Is stopping people doing things permitted?
 
@Ffisegydd If you check for comments first, then answers, then questions and make sure that none of the results overlap, you will be fine.
 
Good shout.
(I see what you meant now by "check those before answers" :P)
 
Other than that, it’s not really possible since every comment URL is also an answer URL (plus anchor), and ever answer URL is also a question URL (plus answer number)
 
@simonzack Yes. You can stick anything under version control really.
Binary blobs are just uncommon to need.
 
hi all
 
2:30 PM
Interesting. http://stackoverflow.com/u/3005188 is a valid url but http://stackoverflow.com/u/3005188/ffisegydd is not. Whilst if you replace u with users, both are fine.
 
You're getting into the depths on that one.
 
pelican is just like sphinx but for blogs?
would anyone recommend it
 
@Arden I've heard good things
 
ill try it i guess !
 
2:39 PM
It's not specific to blogging
It just generates static html files for you, to speed up your site and for security
But you can plug it into Wordpress apparently and it'll generate a static version of your Wordpress blog for you
 
@Ffisegydd That’s because /[qau]/\d+ are short URLs :P
 
Ok. So a short url isn't meant to have the /title-of-my-question-blurb then? Makes sense :P
Writing the unittests for it anyway.
 
@QuestionC Yeah I was worried about putting big binary blobs in, but compressed it's ~80kb, so I suppose that's alright.
 
3:13 PM
That is a fair amount of tests. Now I actually need to write code to pass them D:
 
cbg folks!
Anyone know why restructured text documentation is so bad?
@MarcusStuhr Yea, and locks suck.
 
@simonzack Dude. I've seen CVS store zipped up versions of Boost before, and it was perfectly fine. The "Version" is more important than the "Code" in cvs.
 
3:32 PM
@GamesBrainiac i too wonder haha
not only the design but the information is pretty subpar
 
I honestly think that the rst format is amazingly powerful. Much better than markdown.
But why so little love?
 
you wanna give it some loving?
 
Trying to, diving into the docs
and the sourcecode too.
 
if u wanna hand let me know ill be free a bit later on
i figure its time i did something for other people ^^
 
3:58 PM
Boom! Got my code passing my tests. Now just need to clean it up as it is fugly.
 
4:12 PM
On the one hand I hate the 80 char limit, on the other hand I see the point in it when you present the work in, for e.g., github :/
 
buh, so much work to do today :\
 
do most of u guys do programming for your day job?
 
I do
 
I don't.
 
freelance?
 
4:20 PM
Full time
 
@WayneConrad your so profile lol
# Working for a living
[day, dollar].each(&:another)
 
Yeah I do approve of that profile.
 
Thanks!
 
would anyone have some pointers for marketing a desktop program
i like programming but now that i have something im not sure what to do with it ^^
 
4:31 PM
@Ffisegydd To save line length, you could make ((?:https?://)?(?:www\.)?stackoverflow\.com/ a separate variable and concat that to the beginning.
Also, why those outer parentheses?
Also, save those regexes outside of the function
Also, replace list(regex.finditer(s)) with regex.findall(s) maybe not
But maybe iterate on finditer directly instead of making it a list and then using two generator expressions
for m in regex.finditer(s):
    if m.start(0) not in matches:
        result[key].append(m.group(0))
        matches.add(m.start(0))
Also, instead of the OrderedDict, you could just use a list of tuples, to get rid of some small overhead
Finally, I would move result = {} closer to the end, so its existence more locally restricted.
And I think that’s all I can say for now about those 32 lines. (<3 code review)
 
theory of computing class is a little weird. Does it have a practical application, or is it more in the purpose of training thought patterns?
 
If you tell me, what “theory of computing” covers, I might be able to give you an answer to that
because that sounds incredibly abstract
 
4:46 PM
@Arden So you created something by accident that you think others might be interested in? Well done!
 
Such a class should cover turing machines, lambda calculus, the halting problem, etc.
(At least, that's what I'd want it to cover)
 
It's like, finite automata and regular expression types of things. Lots of proofs
 
so classic theoretical computer science
with languages and grammars?
 
5:12 PM
cbg again
 
@poke thanks for the CR, I'll look at fixing that up now. I did originally use findall but I need the indices for matches (best way I could think of doing it).
 
@corvid how's the star feed going?
 
working on it currently, but mostly spent time reading through your code and trying to match
You said you wanted a command which just updates the star model with the 10 most recent, right?
 
You'll need something like next_page for going to the next page, get_all to get all messages from all pages, and maybe get_latest which just gets the first page. Then add a command in se_data.commands that will run get_all.
 
@holdenweb its not a finished product, i used the project to teach myself programming over the last 8 or so months, its the sort of thing thats not really out there yet so its hard to say if it'll take off
 
5:22 PM
The stuff that parses an html message block already exists, you just need to write the stuff that traverses the pages and passes that html on to the model.
 
@holdenweb i'd love to keep working on it but its time to see if its got any chops, just not sure how to start
 
stackoverflow.com/questions/27192932/… unclear what they want / what they're having trouble with
 
@davidism Why HTML? The starred messages are available as RSS feed.
corvid already used that one in the previous revision
 
@poke only the last few, and I want all of them, and the feed also doesn't say how many stars a message got
 
cbg
 
5:29 PM
@corvid you pick, if you want to use feedparser instead of scraping the starred list, go for it
 
Ah, I see
 
kay, I try to make the code match the methods you'd use, which takes a bit longer
 
What are you having trouble with? I can clear things up if you need me to.
 
5:52 PM
I was thinking, for MVP, would you need to dump that table in order to repopulate it with the new data? Eg, sopy stars get_new would remove all old entries and replace them with the new ones?
Or would the query itself only fetch the 10 top entries?
 
6:07 PM
Any comments/code review for the code here and here. The associated tests can be found here. I'll merge these into master tomorrow, with any comments fixed. Got our Christmas meal tonight -_-
Means I've got to pretend to be socialable.
Also: yes I know the code is longer than 80 characters.
O_O
 
@Ffisegydd that sword is terrible
otherwise the trailer is great..
although I'm still not a big SW fan
 
Wat? No. You're wrong. You're so wrong it hurts me Peter. It hurts me deep down inside.
 
(I am a SoftWare fan, but that's a different thing..)
 
I'm not the biggest SW fan either to be honest, but it does look good.
 
@Ffisegydd :D
@Ffisegydd I said the trailer is great, the sword is terrible
 
6:17 PM
The sword is awesome.
 
I'd say Anakin is probably my favorite character in any movie series. Not sure what the movie will be like without him.
 
@Ffisegydd let me guess -- you liked the Guardians of the Galaxy, didn't you?
 
You didn't, I take it?
 
@corvid sure, as Darth Vader :)
@Ffisegydd I almost hated every single second of it
 
2 mins ago, by Ffisegydd
Wat? No. You're wrong. You're so wrong it hurts me Peter. It hurts me deep down inside.
 
6:18 PM
But Darth Vader died in episode VI
 
@Ffisegydd :D:D:D
 
@Ffisegydd I don’t like the x = something \n return x thing.
@Ffisegydd I think so too, it’s a broad sword!
(kind-of)
(you can’t really make a laser beam broad, so good enough! :P)
 
anyone remember those sweet swords from The Clone Wars series that the Mandalorians stole?
 
@corvid I clicked that image to see it large and got disappointed.
 
what's disappointing?
 
6:22 PM
It didn’t get larger :(
 
(resists urge to make immature joke)
 
“That’s what she said”?
 
indeed, indeed it is... ;_;
 
@Ffisegydd Is there a reason why the util module is underscore-prefixed? It looks a bit ugly :/
 
anyone work with PhoneGap before? I have no clue how to make it work with Flask app
 
6:58 PM
@poke I called it _util because these are functions which shouldn't be used by the "user". They should be used in other functions which accept Question objects, etc.
 
7:20 PM
I see, hmm
 
DSM
Afternoon cabbage for all.
 
morning DSM
 
cbg
 
hm. To exclude a directory from being pushed to one git remote, do you make a custom git config for that remote?
 
You don't want to do this though, surely?
It defeats the point of git.
I should be able to clone your repo without knowing about your super-magical-file that is in some versions of the repo and not in others
 
7:44 PM
I have a mobile app included on my project, and a backend. I want to push the back end portion to heroku but not the whole mobile app
 
Then you should split it up into two repositories.
 
hmm touche
 
cbg all!
 
Git only tracks full content, so you can’t partially push stuff
Cabbage
Anyway, I’m out, rhubarb!
 
@poke Seeya!
 
7:50 PM
@corvid How about using different branches?
 
@rvraghav93 you're onto something!
okay. Linux java keeps messing up every time here...
 
Check these links question1 and question2...
 
8:10 PM
Cabbage! :)
 
morning Iplodman!
 
How goes ye'? :D
 
pretty annoyed with android. You?
 
Writing an email client ;P
Its fun, but I'm having some issues with IMAPClient.
:c
 
Is that something in the standard python library?
 
8:15 PM
No, sadly. The API is nicer, but it uses imaplib for the backend.
OMFG, this site is literally stealing the HTML from SO. stoflru.org/questions/24882838/python-imaplib-errno-10060
Is it not?
 
A leading underscore in a function name make marks it as private, is that correct?
 
@WayneConrad I believe that's the case with pretty much anything. Variables, etc.
 
Cool. Thanks.
 
@WayneConrad Here's a good article: igorsobreira.com/2010/09/16/….
 
it doesn't make it private, it just implies that it is
 
8:29 PM
Implication is good enough for me. And good article, thanks.
 
@corvid +1.
No problem!
Should I, or should I not, leave a comment linking to here? Something along the lines of "You can chat about Python here:..."?
The OP mentioned he didn't have developer friends, and I thought it to be something he might like.
 
sounds fine to me
 
Thanks, just wanted to check since it's not particularly constructive.
 
DSM
8:43 PM
Kevin would have a good construction-related joke, but he's not around, more's the pity.
 
8:54 PM
Cool language so far today, but I still can't believe Guido saddled you guys with explicit self. Such a smart guy, too...
On the plus side, everything thing I try, both with the language and with the libraries, just seems to work. Nice ecosystem.
 
Don't you dare say a word against Guido or Python!
;-;
 
Um... too late? :)
 
;P
I quite like self.
 
@Iplodman In a very much non-trolling, not-a-leading-question sort of way, what do you like about it?
 
00:00 - 21:0021:00 - 00:00

« first day (1504 days earlier)      last day (3430 days later) »