« first day (1644 days earlier)      last day (3319 days later) » 

5:00 PM
Also #pillow is dead :(
 
Whenever I meet someone like me, I usually imagine a fight to the death between us.
 
@Kevin wat!? There's more people like you.... I'm not sure I can ever sleep soundly again knowing that :p
 
I usually lose, unless I have pocket sand and they don't.
 
DSM
5:04 PM
I know we've got a dup for this somewhere-- nobody's posted my favourite list(OrderedDict.fromkeys(seq)) if the elements are hashable yet either.
 
@JonClements Yep, there's 36 of us, and we keep the world spinning. <obscure reference/>
 
Yellow (top) is Python 3.4.1, it uses MSC v.1600 (Visual Studio C++ 2010)
...
I have C++ 2008.
Permission to punch Satya Nadella in the face?
 
Granted.
 
Sigh, I'll just go and use MinGW.
 
@Kevin tip: put this image somewhere in the next piece of technical documentation you write, with a technical-sounding label:
 
5:14 PM
:-)
 
Ummm.... I got a response from UKIP regarding my email... no one else as yet: *One of UKIPs policies for candidates for Parliamentary and Local Council is
that they are expected to represent local people views even if it is at odds
with UKIP policies and core issues. UKIP does not have a party Whip.*
 
Pretty sure that Tabula Lex Moys Legis thing there is the database...
 
@JonClements Hahahahaha just imagining the nightmare of being UKIP party whip :-)
 
@Zero it'd have to be a bloody well paid job - that's for sure :p
 
Tangentially related: I discovered recently that the English Democrats are fielding one Steve Clegg in Sheffield Hallam – and apparently he'll appear before Nick on the ballot ;-)
 
5:19 PM
@Zero that's brilliant :)
 
Ed Cottrell and Jason C are tied again ...
 
isnt ukip like white power or something? (I dont know uk politics...)
 
They claim not.
They also claim that Romanians with AIDS are the cause of all the problems in the health service, so ...
 
damn gypsies
spreading around their hiv's
 
linters keep messing up my vim
 
5:24 PM
oh man i need coffee.... afk
 
Romanians are not gypsies, Irish travelers are, I believe.
For other uses of the term see Traveler. Irish Travellers (Irish: an lucht siúil) also called pavees, tinkers or gypsies, are a traditionally itinerant ethnic group who maintain a set of traditions. Although predominantly English speaking, some also use Shelta and other similar cants. They live mostly in Ireland as well as having large numbers in the United Kingdom and in the United States. Their origin is disputed. Around 10,000 people in the United States are descendants of Travellers who left Ireland, mostly during the period between 1845 and 1860 during the Great Famine. About 2,500 of them...
 
just installed py2.7.9 from source but it is still showing 2.7.6 :(
 
Irish Travellers might be called gypsies, but the gypsies of Europe are called the Roma, which is not the same as Romanian.
 
@ChillarAnand Are you using pyenv?
 
5:26 PM
Anyone ever do fun stuff with logging?
 
It's like you guys haven't seen "My Big Fat Gyspy Wedding" or something...
 
I hope you don't mean you sudo make installed it
 
subclassing handlers and what not?
 
Then you need to link the new python executable manually
 
I learned more about gypsies today :)
 
5:26 PM
@davidism i did sudo make install
 
I was basing it of them being "roma"
 
@davidism sudo tell @davidism to install sqla 1.0 :P
 
@ChillarAnand don't ever mess with the system install
 
now I know that roma does not have any thing to do with romania ... other than sharing some letters
 
let the system's package manager deal with system packages, install your own stuff separately
 
5:27 PM
but then it asks for sudo?
 
Sounds like an Austria/Australia deal.
 
I used to know someone of Roma descent, called Romina, who was born in Romania. True fact.
 
@davidism wasn't all that straightforward :D
 
did you just call her R?
 
5:28 PM
what wasn't?
 
There was a time when you had to install things from the source
 
any tips to upgrade to 2.7.8
 
@ChillarAnand for python, always use altinstall if you really have to install it system wide
 
pyenv
 
@ChillarAnand use pyenv
@JoranBeasley beat me to it.
 
5:29 PM
normally you don't need to, or you can install to /opt instead
 
pyenv init 2.7.8 or something
and your are all set
 
pyenv install 2.7.8 && pyenv global 2.7.8
then you're set.
 
there that
ok coffee for realz
Hey Zero you know how to use the 3 seashells now? :P
 
upgrade to 2.7.8 they say...
 
@ZeroPiraeus Reminds me of a review I read of one of the Mario RPGs, where the author complained that one character was named Goombella. "That's like having a daughter and naming her Humanie."
And yet, that's pretty much what happened here.
 
5:31 PM
@JoranBeasley Both how and whether, thanks ;-)
 
Guys, a huge error message has appeared.
 
> c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lpython34
 
Pretty sure that means you're missing a DLL.
Like, 60% sure.
 
cbg
 
5:35 PM
cbg
 
cbg Adam
 
how's sqlalchemy v1?
 
cbg (tries to be cool)
 
See if you can't find a python34.dll floating around your system somewhere
 
Hey up again
 
5:36 PM
Wait a minute.
Oh that's really cool, this chat supports Markdown :p
 
kind of
 
No python34.dll in C:\Python34
Well, I do have one from a program I've built using py2exe, is that good enough?
 
Mmmmaybe. It's definitely worth trying.
 
AH
Python34/DLLs contains a python3.dll
sneaky rename
Same error, I wonder where do I put the python34.dll, into my build directory?
 
anywhere on the path should do
 
5:42 PM
is this a bug in python?
>>> inspect.getsource(sys.excepthook)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/inspect.py", line 701, in getsource
lines, lnum = getsourcelines(object)
File "/usr/local/lib/python2.7/inspect.py", line 690, in getsourcelines
lines, lnum = findsource(object)
File "/usr/local/lib/python2.7/inspect.py", line 526, in findsource
file = getfile(object)
File "/usr/local/lib/python2.7/inspect.py", line 420, in getfile
'function, traceback, frame, or code object'.format(object))
 
looks like python complaining about a bug in your code :)
 
@ChillarAnand Don't think so
 
it is working correctly on python3.4
 
Hey guys, is there a way (when using python interpreter) to stop a script midway, and tinker with it? Similar to debugger command in JS (although I know there won't be any debugging tools)
 
@Martin import pdb; pdb.set_trace()
 
5:44 PM
Thanks I'll try it out
This is exactly what I needed, thanks @tzaman
 
and that does drop you into the debugger, so you will have all the usual tools.
np :)
 
so I feel inspired to set up continuous integration on my home computer, any of these tools you guys recommend? wiki.python.org/moin/ConfigurationAndBuildTools
 
There's also a great visual debugger in PyCharm (and I suppose PyDev as well).
You can also use the debug command in IPython to open a pdb window at the last exception when messing around in the terminal.
 
@Martin try pudb pypi.python.org/pypi/pudb its interesting
 
^ all true. Also if you have IPython installed then ipdb does the same thing but better
@ChillarAnand oh wow that screenshot instantly threw me back 20 years
I should get a Norton Commander window manager skin
 
5:49 PM
yeah.. turbo era
 
in Stack Overflow 2015 Moderator Election Chat, 7 mins ago, by Tim Post
As our thanks to everyone that stuck it out and didn't withdraw, you'll be getting an email from me asking for your shipping info and size details at some point next week. I'm going to stuff your mailbox so full of awesome goodness that .. well ... your mailbox will fill up.
yay... more swag apparently :p
 
I love swag.
 
Yaaaay
 
Wow, my comment in got an upvote :D adds git to the list of his skills
 
@ChillarAnand Wow that's really cool. I'll give that a shot later
 
5:54 PM
in Stack Overflow 2015 Moderator Election Chat, 1 min ago, by davidism
I'm in luck, not only did I type 21 amusing things, but I also didn't withdraw from the election! Double swag!
 
@davidism that made me laugh :)
 
@davidism: I had people look at me like I was made because you made me laugh while on the train.
 
Apparently, putting in python34.dll everywhere still makes the error.
Remember that scene from the Matrix where the compiler tries to dodge python34.dll? That was a good scene.
 
Oooh I typed enough to get stuff in the chat :D
Mostly from when I made more graphs.
 
DSM
I knew my apathy was going to cost me eventually. :-/
 
6:00 PM
Papa Johns for dinner tonight. omnomnom.
 
Papa Johns << Dominos!
 
Wat. No. Get out.
I've kicked people for less than that.
 
Dominos << Pizza Pizza
 
We don't have Pizza Pizza here.
 
Shame :(
 
DSM
6:02 PM
My family's boycotted Papa John's ever since the one near our house back in Hometown changed management, and not for the better.
 
We don't need it. Because Papa Johns is bestest.
 
looks like I can just use makefiles with make
bit shifting?
 
timsort is invented for python by tim peters wikiwand.com/en/Timsort
 
and pizza?
 
The only thing I like about Papa John's is their "sorry we were so terrible" commercial from a few years back.
 
6:05 PM
Do you have Pizza Hut? IMO Papa Johns > Pizza Hut > Dominos.
 
@Ffisegydd is right
 
The pizza hut of my childhood gets bonus points for having a dim interior and a pinball machine and red and white striped table cloths and soda glasses in that kind of red translucent mosaic style. You know. Pizza place things.
 
Yes, yes we do. I'd agree with that actually.
 
ok, so using makefiles with make to do my CI on my box at home, thoughts?
 
@Kevin So Pizza place-like.
 
6:08 PM
One day I'd love to visit 'murica to visit some of the food joints.
Man vs Food has given me the impression of some epic food places.
 
Pretty sure Dominos had a sorry we were terrible commercial too.
 
@Ffisegydd I once baby sit my mate's kids, and I thought it'd be a good idea for all of us to make pizzas for dinner (something to do).... trying to convince the 5 year old that skittles and ice cream was not going to work was quite amusing
 
If someone replies, @ me so I see it.
 
@Ffisegydd how did it go?
 
@Robert very well. Got a face-to-face interview on 27th.
I was very happy with it, and they seemed very keen.
 
I've now got 4 interviews stacked up.
3 of which are "final" ones and one which is a first of two.
 
Python chatroom: Alive, people talking about off-topic things. C++ chatroom: Killed by boredom.
 
Pizza is a sizzling topic here.
 
Well I mean
what do you have with pizza?
Salad.
on-topic confirmed.
 
Apparently I also need libpython34.a, that's in C:\Python34\libs.
I really don't know why it's not working :3
 
6:21 PM
You shouldn't "need" anything, things should be installed in standard discoverable locations.
But then again, Windows.
If anyone hasn't voted in the primaries yet, now's your chance to push @Jon over 6k.
 
I've never had an issue compiling 3.4 code -> binary (using cx_freeze at least)
never had to go rooting around (ha, wordplay!) for dll's or etc
 
That sounds better than "over the cliff" @davidism :p
 
how come emacs is not present in sopython.com/wiki/Python_IDEs
 
its an editor not an ide? at a guess
allthough its probably just like vim where it can be an ide
 
@Ffisegydd nice :)
 
6:26 PM
I suck so bad with all those editors
I need a mouse
im handicapped i know
 
Because we're not really trying to answer the question "what is every editor ever", we're just making a page to point people at rather than discussing what editor to use.
 
@JoranBeasley xkcd.com/378
 
There's one ide, one gui editor, and one console editor.
 
I love emacs ace jump mode.
 
WORK
WHY WON'T YOU WORK
 
6:35 PM
@GamesBrainiac finally hearing about emacs in this room
 
@ChillarAnand But I use it in PyCharm.
 
cbg @Games!
 
@JonClements cbg!
 
Speaking of editors: has anyone used Atom?
 
@AdamSmith Yes, and you shouldn't use it. It crashes often.
 
6:42 PM
Sad!
I hope it gets better
 
Ctr+left click, in PyCharm takes me to where an object is declared. Is there a shortcut to go back, to where i clicked Ctr+left click?
 
@user5061 Or CMD/CTRL + B
Back and Forth is actually CMD + [, I forget the windows key.
 
switch to vim and use gd and ``
;)
 
I can't remember all those fancy commands. So, I just use CMD + SHIFT + A, gives you any command you want if you can't remember it.
 
Wait, what does this mean: Also, PIL will load by python at last then you are recommended to use same compiler with python to build libraries.
Do you think that I should be using the same compiler that Python was built with to build Pillow? I've been just using MinGW.
Well I'll try it and see how it goes :D
 
6:55 PM
"At last, you will be able to use PIL as a module. It is recommended that PIL and Python both be built with the same compiler."
Maybe.
 
Yeah the instructions.. nicht so gut.
 
Some casual googling suggests that English is not the author's first language. So it goes.
 
goes to download VC++2010 We've detected something unusual about this sign-in. For example, you might be signing in from a new location, device or app. Before you can continue, we need to verify your identity with a security code. How would you like to get this code?
I.. what
Imagine if Linux did this... goes to download a distro Error, location changed, please die in the nearest hole.
</rant>
 
pyenv is awesome. solved the problem. melon @GamesBrainiac @davidism @Kevin
 
cbg
 
7:09 PM
cbg
 
@ChillarAnand any time my man :)
 
@GamesBrainiac just saw your blog post about it too
 
Bad day today! Prof asked for demo at a time when I had destroyed the data base
Got an earful
 
@ChillarAnand Yea tldr: Just use it, you'll thank me later :P
 
@BhargavRao which college?
 
7:11 PM
virtual environments are for fools. Just install everything to global. /s
 
@ChillarAnand PESIT, Bengaluru
 
@Ffisegydd Or use vex.
 
@BhargavRao b.tech?
 
Yep. CSE
 
7:34 PM
Hi
I'm working with the python bigcommerce api and when I call datOrder = app.Orders.all(), it's not returning everything the API says it should.
I want the product array returned with each object, but it's not being returned
Any idea why?
 
it's not returning everything the API says it should? Strange!
 
I think he's poking fun at you because your problem description is less detailed than it could be.
 
Readin that link you posted! Have never used it :)
(Not pokin fun though!)
But yeah, we need a little more context
 
Not sure how much more details I can give without revealing data I can't.
for order in datOrder:
    print order.keys()
Simple loop over the data object gives almost all of the JSON that the API reference shows, like "billing_address" and "id" etc, but the products array isn't with it
 
DSM
7:44 PM
Would it be poking fun if I said I knew the answer but couldn't reveal it to you? Probably..
More seriously, you're likelier to have better luck taking it up with them directly.
 
@SterlingArcher Are there any other missing values?
Or is it only the products array?
 
the api ref doesn't look like getting an order actually returns products in line at all
 
Of the code you've revealed here, I don't see any obvious mistakes. Consider filing a bug report with the API maintainers.
 
it just gives you the resource link
presumably fetching orders products would need a second call to that link
 
@tzaman which would be fine, but the URL is not returned either
@BhargavRao I'm looking but I don't think so, but maybe. It's a large response
Lots of keys
 
7:49 PM
Mp it is an issue related with the API.
Someguy must have forgotten his dosage of coffee
and must have slept while coding that!
:D
 
if you have order ids, presumably you can fetch product lists using the products endpoint
you could just dig into the client code and see what it's doing: github.com/bigcommerce/bigcommerce-api-python/tree/master/…
looks like the Orders objects returned have a .products method that fetches them for you.
 
@tzaman that was it!
I wish the documentation had said that.
Thank you much sir
 
@SterlingArcher it's open source and very cleanly written
the code is the documentation here :D
kudos to bigcommerce, that's some purdy code right there
 
Some of the python files are 10 lines long!
:D
 
Yeah I probably should rtfm a little deeper than the exposed api
sorry
 
7:56 PM
np :)
another tip, dir(random_obj) is often informative for third-party library code
gives you stuff to poke at
 
Thanks for the tip, I'll check that out
 
and in this case, would have revealed that nifty .products method
 
New to python-ish, didn't know that method existed
 
Aargh! Scored a self goal :(
 

« first day (1644 days earlier)      last day (3319 days later) »