« first day (2090 days earlier)      last day (2849 days later) » 

12:03 AM
@MarkoMackic I do have an account, but don't develop anything there
the only contribution I have is a planned collection of canonical posts, which I still haven't gotten around to parse (for months now...)
@WayneWerner nice, thanks:)
 
@AndrasDeak Commit a couple of pomodorii to it this week ;)
or even one
with the potential to do more, if you're into it
 
but... I don't have anything to develop:P
and I'd have to learn git first:D
oh, you mean pomodoroing the canonical post list
Well, the reason I don't work on it is that I have other work:) The kind that buys me bread...
 
@AndrasDeak you don't use source control :p
 
@MarkoMackic I don't, but I rarely develop
some colleagues tried sowing the seeds of svn in the group, but it didn't stick
if anything, I'd learn git
 
That's true, I understand you : )
 
12:10 AM
but then I'd be the only one using it...
 
I like git, with ui :D
The , really matters
 
:)
good night
 
I like git, even more after really understanding what it's doing
 
> One last thing before you run off to learn all the Git commands: remember that it is almost impossible to lose work that has been committed.
I should probably read that:)
 
12:29 AM
Yes... commit commit commit!
When in doubt... commit ;)
You can always come back and muck with the commits later
also the nice thing about git is cloning is fast, so what I will (well, used to, when I had a terrible comprehension of git) do is do something like git clone good-repo backup-repo
and then try not to break things too hard in the good repo
 
user559633
and if you're paying for github, don't hesitate to push to a dev branch, even if you think it's garbage data ;)
 
:+1:
 
user559633
▶ du -hs .git/
125M    .git/
 
user559633
huehuehue
 
I don't know if they still have the option to have unlimited forks (or if forks of a private repo still don't count)
I would commit all kinds of garbage to my personal fork
plus have tons of experimental branches
 
user559633
12:33 AM
same -- i'm currently running on a workflow of release, master, nightly, nightly-dirty where it's most to least stable/"good code"
 
12:44 AM
I was a fan of git-flow
 
git flow has the right idea, it's just a little too verbose/fine-grained
then you get to the hg-flow plugin, where the author generalized the stream model so you can create custom and sub streams.
I have no idea why anyone would ever need that much control, but it's there.
 
what kind of projects are you people working on
 
I've just been porting old garbage to new slightly shinier garbage
hope to be doing real dev soon, though
 
I mean in general when you're developing something, what is the area that you're mostly interested in
 
12:59 AM
Python
 
Then you misunderstood the question
What do you love to program in python
 
flask is your area of expertise :)
but all of that are tools you use ;)
The answer I was hoping to get is like : games, servers, sites, etc..
 
That's tricksy
www.<something>.com-julygifts.com
the domain is com-julygifts.com
the rest is just a subdomain
(surprised that the ICANN lets that kind of domain be registered)
 
to me domain names are interesting, is there a root domain name register?
 
1:11 AM
registrar you mean?
 
that's what I mean
still have to be careful :-P
 
no root registrar - there's the ICANN that sets up rules and regs
they let companies be registrars
not sure what that takes
but they're supposed to prevent domains like goog1e.com being registered, AFAIK
rbrb
 
rbrb
That's what I asked for
 
 
4 hours later…
5:26 AM
Hello
 
 
1 hour later…
6:29 AM
cbg
 
6:47 AM
@DSM @JRich @OthersThatUsePandas leanpub.com/effective-pandas
Awww man. I wish we could make groups in chat that you could register to for pings.
So like, have people be able to register for @python-data and when you ping that, they get pinged too.
That's a suggestion for meta that will never be implemented!
 
I'd upvote it
Nice generalization of "Ability to ping ROs as a group"
 
Yeah, let me write something up.
Then I can ping everyone and - damnit.
 
@Ffisegydd sadly - chat is like a distant cousin that only gets invited to parties because someone else mentions "we should probably invite 'em"....
 
@JonC lately there's been a little work though, especially around mobile and such.
 
true - but little else :)
 
7:03 AM
If you don't suggest, then it definitely won't happen.
 
7:23 AM
Cbg
 
Hey up
 
Hey Fizzy, did you look at that ML question I linked yesterday? chat.stackoverflow.com/transcript/6?m=31532005#31532005 I'm assuming you know something about that topic, I certainly don't. :) OTOH, I guess there's no pressing need to close it, since it's not attracting answers.
 
@PM2 no I don't think it's a dupe. FAR and FRR are strange terms, I've not seen them before in ML.
Some googling suggests they're used in biometrics design, and I can see the equivalent versions in the ML world.
 
Umm.... The Chilcot report is out today... should be more interesting in more way than one
 
Chilcot cbg
Chilcot's summary of seemed to be 'Easy now' about starting any more wars. :(
 
7:39 AM
@Ffisegydd Ah, ok. Thanks for looking.
 
It's really unclear though, needs some code.
 
3 unfamiliar abbreviations in one question (´・_・`)
 
Support Vector Machine is SVM :P
 
The question is almost a year old. The reason I mentioned it is that it was found the other day by the SOCVR dupe-finding bot, Queen Bee. And i guess Queen Bee found it because of the recent "possible dupe" comment.
 
Does anyone have any insight - when python2 support ends in 2020, will we drop the '3' from all the commands, or are they likely to stay?
 
7:48 AM
I already drop the 3 from commands :P
 
alias?
 
IIRC, ArchLinux already drops the 3, but it has caused a few headaches for some people.
 
Nope :P I just don't have a version of 2.
Or I use a venv.
 
i'm using venvs, but still seem to need to run, e.g. pip3 install... - is there a way round that in the venv settings?
 
That is strange.
Try which pip while in your venv.
 
7:52 AM
just gives ~/Code/ml/env/bin/pip
(and /Code/ml/env/bin/pip3 as well, when I check that.)
 
They should both work exactly the same then.
Try pip -v
(might be -V, can't remember)
 
capitalised :)
pip 8.1.2 from ~/Code/ml/env/lib/python3.5/site-packages (python 3.5)
 
Cabbage!
 
Well there you goes :P
 
so that'll just work with regular ol' 'pip'?
 
8:00 AM
Well, yes? It's pointing to your venv.
Why not try it and see? :P
pip install something and see if you can install it.
 
8:44 AM
@Ffisegydd Ho damn, it's official now ;)
 
Oooh
 
Okay, here's a question: what's the best way of pythonically achieving this?
 
Can't view.
 
class MegaIntrepidClass:
	awesome_attribute = None

	def callback_check_url(ch, method, properties, body):
		self.hold_it_against_me(body)  # Obviously can't do this "as is".
Trying to get access to class attributes when inside a callback that doesn't have a reference to self (3rd party callback)
 
Closure?
 
@IntrepidBrit So callback_check_url is a classmethod and you want to access an instance object inside it anyway?
 
9:07 AM
What Fizzy said. If callback_check_url is defined inside the class (and isn't a classmethod) but doesn't have a self arg you must be defining it inside a method, so you can just reference the method's self arg.
 
Define it in your __init__ and then do self.func = func
You might need to add it as a staticmethod too.
Or it'll try to pass self in implicitly because screw PEP20.
 
Sounds right.
 
class MegaFizz(object):
  attr = None

  def __init__(self):

    def callback_check_url(ch, method, properties, body):
      if self.attr is None:
        self.push_it_real_good()

    self.callback_check_url = callback_check_url
Something like that? Haven't added the staticmethod though.
I wonder if self.callback_check_url = staticmethod(callback_check_url) would work?
 
So I'm using RabbitMQ and need to pass it a callback function definition with the above structure, so that when a messages arrive from the broker it is processed appropriately
Now, the behaviour I'm wanting to implement will differ with respect to the type of class
The "hacky" solution I thought of would be to have two classes that have different (but similar) callbacks, but would have a lot of code duplication
 
Can you put together an MCVE? Or was that what the pastebin was?
 
9:19 AM
Clearly it was too 'M' ^^
 
It wasn't V either, so well done, you gave us the Church of England.
It wasn't C either, so even better, you gave us ecstacy.
 
It probably didn't count as E either.
 
Gab
9:44 AM
Hello I have a question
 
Hi @Gab. If you have a question then just ask, but first please read our room rules sopython.com/chatroom
 
var that = this; (JavaScript, 2015)
 
Gab
I try to make a post to this
api.sell_limit_order(url) { 'datetime': datetime, 'id': string, 'type': string, 'price': decimal,'amount': decimal }
with api.sell_limit_order(url)[price=num, amount= 10] but gave this error

TypeError: sell_limit_order() takes exactly 5 arguments (3 given)

does anyone have any idea how to do it correctly?
 
What is api supposed to be? And your Python code doesn't look like valid code.
Is api.sell_limit_order(url) { 'datetime': datetime, 'id': string, 'type': string, 'price': decimal,'amount': decimal } supposed to be code?
 
9:54 AM
anyone know Bangor or Sheffield, how they are as student cities, connections, and Bangor, Sheffield Hallam universities, how are they? (I can read Google, but looking for information for a friend)
 
Gab
I think there are values which receives by post
 
looks like Bangor is pretty much nowhere periphery with only students in there
 
@AnttiHaapala Yeah Bangor is pretty much in the middle of nowhere. Okay links to bigger cities (Liverpool etc) but still 1-2 hours by train.
 
I looked the travel options to London for example, there is an occasional direct train but others were like 4 hops... :D
 
Well why would you want to go to London in the first place? :P
I think as they're (relatively) remote, they tend to have a lot going on for students.
I had a friend who went to Bangor and enjoyed it.
Sheffield is much bigger and has better links to places like Leeds, York, etc.
 
9:58 AM
sheffield hallam looks like "cheap bulk" uni
lower rankings but one of the largest
@Ffisegydd she's got relatives in London.
also I guess if in Bangor you feel homesick you will not find Vietnamese comfort food easily :D (ingredients or in restaurant)...
 
Maybe, maybe not :P I've never been, you'd be surprised though.
 
I discovered the problem
I must give him arguments price and amount to api.sell_limit_order(url)
Does anyone know how to give those arguments? to api.sell_limit_order(url)
 
10:13 AM
@John why have you switched accounts?
And dude, we don't even know what api is meant to be.
We're not mind readers.
 
listening to the "Chilcot" report
 
sory
I change computer
 
Why do you have multiple accounts in the first place?
 
this is not mine It is of a friend
 
@John doesn't matter :)
I'm too busy right now listening to: app.musicradio.com/lbclondon/on-air/player
 
10:25 AM
Huh.
My problem is not actually a problem.
TIL something new about Python
 
10:37 AM
?
 
(Just a continuation of my question before - now complete with an almost MCVE pastebin.com/Lv4qaBkA)
(It won't work without having installed the RabbitMQ broker on localhost)
 
@IntrepidBrit are you using pika on Python 3?
 
Yep
When I tried to pass the callback function to basic_consume last night, it kept choking on the self parameter.
 
Sounds like Chilcot has savaged Blair.
 
@IntrepidBrit and the solution was?
 
10:42 AM
But this morning it seems fine (so I must've made a mistake somewhere last night). So I think I'm going to need to delve a bit deeper on how self is handled "lower down" in the python internals
I can just do self.callback_check_url and it doesn't choke on it. But I also don't understand how pika doesn't get self confused with the ch (channel) parameter
 
All that talk about Bangor reminded me of this: Fiddler's Dram - Day Trip to Bangor 1980
 
@IntrepidBrit bound methods...
180
Q: Class method differences in Python: bound, unbound and static

Franck MesirardWhat is the difference between the following class methods? Is it that one is static and the other is not? class Test(object): def method_one(self): print "Called method_one" def method_two(): print "Called method_two" a_test = Test() a_test.method_one() a_test.method_two()

 
10:58 AM
Cheers Antti - very illuminating
 
11:19 AM
Sheffield is a great city (particularly for Students). It has one of the highest qualities of life in the UK, despite the weather, iirc.
My Brother in Law did his PhD at Sheffield, loved it, wants to move back.
 
@Withnail glad you like it :-)
@Antti as a former resident (ages 10-33), it's an excellent student city. Your friend should check out the Walkley / Crookesmoor part of town for accommodation.
Transport links are very good ... as good as anywhere else that far north for London except maybe Manchester, and a wide variety of nearby places (including the best countryside in England within half an hour, if you like that kind of thing).
 
My Brother in Law did his PhD at Sheffield, loved it, wants to move back.
 
FWIW, Joe Cocker came from Sheffield.
 
Dude, Jarvis Cocker came from Sheffield ;-)
(as well)
Also Arctic Monkeys. On the other hand, so did Def Leppard ...
 
11:42 AM
I'd be more inclined to treat 'Leppard more kindly than the Artic Monkeys.
 
@ZeroPiraeus In the mid-1970s, Jarvis's dad, the late Mac Cocker, was a DJ on Sydney's youth-oriented government radio station 2JJ (which is now a nationally-networked station, 2JJJ). Mac had a big influence on the musical tastes of a lot of young Sydney people, exposing us to music we'd never heard before.
 
Cool :-)
 
Ah, good old triple J
 
I was a fairly devoted listener to JJ / JJJ for years. But eventually it got to the stage where they were just playing way too much rap, and I have a fairly low tolerance for rap. Besides, I like a lot of jazz & blues, and I wasn't getting much of that on the Jays.
 
12:10 PM
Some one can help me with Choosing Python framework for REST service
I want only REST frame work
i already have js front stack
confuse between Django , flask and falcon
-1
Q: Why to use Falcon instead of Django and Flask for REST Web Services ?

Pradeep JaiswarNothing much to say , question says it all. Internet have very mixed review about above question. I am looking for REST only framework (No browser web-html involve)

 
What else are you going to do with it?
 
only REST API
 
Btw, opinion-based questions aren't a good fit for SO.
 
which will consume by Mobile and JavaScript Apps
 
Which is partly why you're getting downvoted.
 
12:12 PM
(the opinion, not the apps. Those are fine)
 
Yes , ya its sad to get downvoted
 
@PradeepJaiswar Please do not link your fresh SO questions here. Give them at least a day or two on the main site before bringing them here. Please read the SO chat room rules.
 
They'll all do. Flask is probably the simplest, but I hadn't heard of falcon until now
You might also want to look into Tornado if you want asynchronous stuff, which is all the rage nowadays. But that requires additional learning
 
Thanks for that
appreciate that
Since i am new to python , does Django and flask have lot more extra dependency and module
 
due to HTML and view involve
 
Flask is simplest, Django Rest Framework comes with a lot of batteries. If you need them, go with DRF. If you don't, go with Flask, start small and you can add in later.
 
Don't worry about dependencies for now-- just know that flask is far, far simpler
 
@PradeepJaiswar However, in this case, that question isn't actually suitable for SO, since it's asking for a recommendation for a tool. You should have just asked here instead.
 
If you're looking for someone to definitively pick for you-- just pick flask. It'll give you the flexibility to change your mind later.
 
12:16 PM
Closed anyway.
 
Flask is also in my mind
Sorry guys if this question sounds basic , was hanging up from couple of days on this
so thought to get some advice on this
posted same kind of question but getting down vote
-1
Q: Rest only python framework

Pradeep JaiswarI have an application divided as FrontEnd - (AngularJS) Backend Rest API (looking for python Rest Framework here) Database ( Mongo/Mysql/DynamoDB/Hbase etc...) For backend Rest API, after some online study came across few options as Django (django-rest-framework or django-tastypie) Flask...

 
Picking a tool at the start can be daunting-- but the important thing is that you start.
Well yeah, that's opinion based too. Not good for this site.
 
@ZeroPiraeus so hows Sheffield Hallam as a uni then? Her field is primary education
 
I'm not really in a position to say, academically ... I know there are league tables around. It's a large and modern university, and what I've seen of its out-of-classroom facilities are good.
I know nothing at all of Bangor, but I'd imagine it's going to be a lot smaller. Different people thrive in different environments; I don't know whether your friend feels they'd thrive better in a large (maybe more diverse) student community or a smaller one (which might feel more like being part of a family).
 
Bangor will definitely be smaller.
Both in terms of the city itself, and also in terms of the university.
 
12:27 PM
though 30k vs 10k really isn't "big vs small"
it is more like gigantic vs big.
 
Hallam is one of two universities in Sheffield – the University of Sheffield is a traditional red-brick university, and at least as big as Sheffield Hallam. So there are a lot of students in Sheffield.
 
in Uni Oulu there are 16k students and it didn't quite feel like a family yet :D
 
@Withnail I wish you could tell me this earlier :(
Django-rest-framework's serialization mechanism sucks
 
@khajvah anything django sucks :d
 
:D
 
12:31 PM
my friend has been fighting django-rest-framework for ages now
it starts with "oh kewl there is this nice framework that gets everything done with no work"
WRONG.
 
I very often write two serializers for one thing (one for displaying the data, one for saving) it sucks
 
Both campuses in Sheffield are spread around the city (mostly but not entirely in the centre). I think individual departments are usually concentrated together.
 
why is it so hot outside?
 
The earth's angle in relation to the sun?
 
I understand nuclear fusion is involved.
 
12:32 PM
@AnttiHaapala everything complicated is like that. it looks easy but when your application gets a little out of "standards" it becomes a mess
 
@khajvah that is the genreal django syndrome
@corvid not here, come here.
@corvid and we have your favourite music too
 
I mean, right now, the next time I build an API, I'll do it in Flask. DRF was a useful introduction to it - I feel like there's a big gap to jump between the 20% of stuff you need to know to do 80% of the things, and then that last bit.
 
"This framework makes it so I don't have to think about __" -> "Oh tomato, I should have thought about __"
 
@AnttiHaapala What's the temp in the mystical kingdom of finland?
 
12:34 PM
@AnttiHaapala my real talent is that I am used to being messy so I am still not losing control. :D
 
"humidity: 88%" I will die instantly
 
@corvid thunders
now sun is shining but we're due to get another front here soon
 
I always want to go to Straya but it's probably waaaaaay too hot
 
ah nope
downgraded just to "shitty rain"
 
@corvid that's because it rains backwards there.
 
12:37 PM
@corvid it seems we've exchanged weather with England :d
 
Flask in the way to go ?
for REST in python
 
PYRAMID _\,,/
 
@PradeepJaiswar Depends on what you are doing, really. Flask is pretty straight forward
 
Morepath! Yeah baby!
 
lol...
 
12:38 PM
@PradeepJaiswar DRF will introduce you to every concept you need, so it is not a bad choice.
 
morepath is the Pyramid --- NIH!!!
 
has only read about morepath, can't actually make a recommendation (but it looks cool)
 
but for long term applications, I wouldn't suggest django
 
@ZeroPiraeus morepath is a copy of Pyramid but with zero code reuse.
 
django seems very powerful but all web stuff comes within , is it needed for REST ?
 
12:39 PM
@AnttiHaapala Untainted by Zope, yes :-)
 
@PradeepJaiswar depends on your application
I personally use almost everything from Django-Rest and more
 
@ZeroPiraeus pyramid took a couple components written as C extensions from zope instead of reinventing the wheel yet again.
 
@khajvah my application is REST only
 
instead of focusing on making a framework, faassen has been cleaning that "zope infestation"
 
@PradeepJaiswar mine too
 
12:41 PM
no front end involve
ohhh
 
@PradeepJaiswar Just use Flask.
 
my front end is fully JabbaScript
 
I actually quite like Pyramid. The docs are weird, though; they give the impression of thoroughness and then it's hard to find what you need when something unexpected happens.
 
yeah Django anf Flask community are in compare
 
only the last chapter deals with differences between pyramid / morepath
if the reg is so good, then there shouldn't be much of a problem to get it into Pyramid to replace ZCA
 
12:47 PM
read this
It's not like Django + TastyPie just because it uses OO. If you are building a service with two or three endpoints, that combo is overkill. “You wanted a banana but what you got was a gorilla holding the banana and the entire jungle.”
read that on ycombinator
 
Don't say that like it's a citation.
Hacker News is not exactly a reputable source.
 
ohhh
sorry for that
 
As I said earlier, just use Flask.
 
I am new bird in python
+1 for Flask ( I am also on same page )
 
Don't say that. Pythons eat birds.
 
12:51 PM
really
 
tbh, it's not a question of life or death
 
Exactly.
 
Flask have a very community to , in most cases problem i will facing would be already faced and solved by some one
 
use pyramid :d
though I am losing this battle here
 
No I am bird
 
12:55 PM
@davidism especially has invested too much into Flask to be convinced to switch frameworks I guess :d
 
@AnttiHaapala I remember you suggesting it earlier
 
@PradeepJaiswar Seriously now, just pick one.
 
Its Flask guys !!
 
there we go
 
I will invest in Flask
 
12:57 PM
@AnttiHaapala Honestly, although I do like Pyramid, if someone is coming in here asking for direction rather than investigating for themselves, it's not the right choice. The bigger communities around Flask and Django make them more appropriate.
 
I invested in a flask, much rum
 
tornado seems nice too
 
@ZeroPiraeus negative.
bigger communities that produce stuff that requires investment to workarounds
you get the warm fuzzy feeling of peeing in your pants
 
lol nice
 
@Zero Piraeus Sorry, i dont mean that but i was hanged on this from couple of days and it was draining my engery so came here
 

« first day (2090 days earlier)      last day (2849 days later) »