« first day (2112 days earlier)      last day (2839 days later) » 

12:11 AM
url lib vs requests. Which one do you recommend?
 
requests is more pleasant to use, urllib is already installed.
 
I think requests is based on url lib isn't it. True?
 
requests is based on urllib3, which is different.
 
ok thanks
 
who wrote requests
found it
 
12:31 AM
Kenneth Reitz
 
yeah
what are you people doing this late
 
He's the Python Guru @ Heroku
 
he works there
?
 
1:04 AM
VTC'd as unclear.
 
really want to give the correct answer: "it depends"
 
IKR?
 
1:19 AM
okay, so I gave an expanded "it depends" answer - only cause this guy is very active in math and just may not understand the difference between mathematical theory and CS
 
 
3 hours later…
4:00 AM
Morning
 
technically
 
morning
 
you know, I've been trying for half an hour to determine if there is a simple statement section (basically is assert defined in SOD) and I cannot find anything on assert - all over unit testing but no definition of it and was thinking of adding to remarks
but not because it doesn't exist because I just cannot find anything :|
ah, well. Off to bed I head.
rbrb all
 
 
1 hour later…
5:25 AM
10:42 (12 minutes ago)
I am writing Imdb scrapper, and getting available list of titles from IMDB website which provide txt file in very raw format, Here is the one part of file(http://pastebin.com/fpMgBAjc) as the file provides tags like Distribution Votes,Rank,Title I want to parse title names, I tried with readlines() method but it returns only list which is quite heterogeneous, is it possible that I can parse each value comes under title section?
 
 
2 hours later…
7:03 AM
 
 
1 hour later…
8:18 AM
cbg all
 
cbg :)
 
cbg :D
 
Cabbage!
@AnttiHaapala That’s so sad.
 
pretty dark yes
 
8:40 AM
@AnttiHaapala Dude... that's depressing :(
 
hmm was thinking how it would feel if genders were swapped :D
 
the same way?
 
Umm... that's thrown my woke up in a good mood off track... nice one @Antti :p
 
@JonClements Have a puppy:
 
:D
:"> sorry :d
 
8:46 AM
Relevant to Antti’s image:
In other words: Get a puppy instead of VR
 
@poke not sure if that's helping or not... umm...
A few years ago I used to follow blenderguru and the competitions he did... there was a christmas one and umm... half of the entries were some really depressing stuff...
 
Always good to start the day with a total downer, eh?
 
 
@holdenweb but of course! :)
 
user image
3
 
8:55 AM
Yep.... knew it wouldn't take long for poke to post a rabbit pic :)
 
I just can’t resist
 
Can't beat a rabbit to lighten the mood. Morning cabbages!
 
Did someone say cute animals?
 
Stop rabbiting on about them!
 
@Gem I’m not so sure about that…
 
9:01 AM
Um... that expression "like a rabbit in headlights..." I wonder if we just put a rabbit in front of @poke it'd have a similar effect...
 
I never heard that expression
 
I suspect most people would say "deer in the headlights"
We could try all sorts of animals, of course
 
cbg
is this cute animal day?
 
Everyday is quite animal day
 
I am gonna get a cute doberman
 
9:05 AM
Hey @khajvah - read your updates from last night - glad you're OK after your ordeal!
 
thanks
 
Cabbage
 
@poke You don't think Cockatiels are cute?
How's that not adorable?
 
@arshpreet You should take a look at OMDb. There's no need to do any scraping. You just submit a query and get back JSON or XML.
Cockatiels are fun. Here are a couple on my head, getting more than a little frisky.
user image
3
 
9:21 AM
What better breeding ground than your head. I think the babies will be smart
 
Cockatiels are awesome (if they're tamed)!
 
Cockerteil
 
I love IntelliJ.
 
I'd only just met those birds 15 minutes earlier. They live with a friend who has a few other parrots, including a couple of birds that she's rehabilitated. The cockatiels like perching on her wrists while she's on the computer. She has to replace keyboards fairly often because they get clogged with birdseed. :)
 
9:37 AM
@PM2Ring ahh... bird seed... I was thinking of something else, but that works :)
 
Looking at how frisky they are, bird seed could be interpreted one of two ways...
 
Don't anybody egg him on
 
@khajvah get a doberman with proper ears and tail -- they're so cute in their unmutilated form:)
cabbage
@JRichardSnape lol:D
 
9:59 AM
@Gemtastic I’m not a bird person :/
 
my submission to matplotlib docs, fixing a typo in code ("preambule"), and some grammar/inaccuracy stuff in the process: stackoverflow.com/documentation/proposed/changes/61771 . Note that there's a conflicting edit by someone with 0 contributions on SO, stackoverflow.com/documentation/proposed/changes/59386 . I don't insist on getting my version accepted, review as you see fit
shit, the conflicting one came first
how did I not see that?
 
@AndrasDeak I don't think I will be able to take it to crop its ears for my own personal pleasure
But I like pointy ears
 
pointy ears are great on an elf or a spitz
 
Do they crop or they are natural?
 
10:16 AM
Elves? I think they're natural
spitz:
 
I guess doberman's can have natural pointy ears too. But most often they are cut.
 
@khajvah they don't. They have flappy ears. Period.
Oh man, now the earlier editor approved my change. I wanted to leave a comment on theirs, but they retracted just before that
I only hope they resubmit based on my version, I'll keep an eye out
Since the editor doesn't have any posts on main, I can't even leave a comment for them...
doberman:
 
falppy-cute. pointy-hot
 
I'm not a huge advocate of PETA, but chopping off parts of an animal while said animal is still alive is not a cool thing to do
 
yeah, I won't do it if I get one
 
10:25 AM
(with certain exceptions, such as removing a dew claw that can cause trouble)
 
plastic surgery on your dog for your own personal pleasure seems too unfair
 
I don’t even get the personal pleasure part
 
Morning cbg all.
 
Why would a dog without a tail be personal pleasure?
 
Ugh, tail docking is horrible.
 
10:29 AM
@AndrasDeak Nice work on the matplotlib SOD front. I was musing on the absence of matplotlib stuff yesterday. I like your style of referring out to the official docs where they're good but adding a bit extra where it benefits.
 
@poke yeah tail part is weird. I was about ears
 
even worse?
 
Unrelated to dogs, but v interesting - have you seen the Mercedes Pure Pitwall tool? - Mercedes have opened up (bits of) their race prediction tool.
Will be playing with that at the weekend. It updates 'live' during a race.
 
@JRichardSnape thank you:) As I firmly believe that the official docs are wonderful, I try to only add stuff that might be missing or scattered. That's what I can do with a clear conscience, anyway.
 
@AndrasDeak Yeah - I agree. It is the way docs could me useful IMO.
@Withnail Nice.
 
10:32 AM
@poke FWIW ear and tail docking are for fight dogs, so that the opponent doesn't grab the dog's appendages. Then these practical features became the standard for these breeds...
 
I wish I could design dashboards like that.
@AndrasDeak there was still an argument being made in the UK in the late 1990s that tail docking was for 'working dogs' on farms and the like. Eventually, they'd get their tail caught in something, and so preemptively chopping it was the way forward. Thankfully illegal now.
 
@Withnail tail cropping use to be quite common with boxer dogs
 
Oh yeah, for sure. It was common across a lot of breeds. Border Collie/sheepdogs as well as terriers and boxers.
 
though I know a vizsla who kept wagging its tail into everything. It got wounded all the time, bleeding all over the place. Bit by bit the vet had to chop it back, now it's half it's original length.
 
10:39 AM
I know a few dogs that do that... bashing their tail against things 'cos they're excited or something... and I just ponder: "Doesn't that hurt - doesn't it occur to you that if you just moved slightly - you wouldn't keep hitting your tail? You silly thing you..."
 
@JonClements So, you don’t do it?
 
Not any more... apparently people don't like their walls knocked down
 
You're looking at it the wrong way Jon. It's a sign of devotion. It's like a human smashing their skull against a mirror whilst yelling: "SEE. THIS. IS. HOW. MUCH. I. LOVE. YOU. DEAR"
 
@IntrepidBrit Do you do that…?
 
Of course. How else do you show your partner you care?
 
10:48 AM
Tight hugs and nice petting?
(I’d love to have a dog that would pet me for a change)
 
Flowers? "It's pretty to begin with, but our love will quickly wilt like these flowers, no matter how well tended they are"

Chocolate? "You're tasty, moreish and inevitably going to make me fat. Also, shouldn't be exposed to prolonged sunlight."
 
@khajvah dude, what is going on down your way? All sounds very confusing.
 
@Withnail ex war heroes were fed up with the corrupt government so took over a police station. Then people starting supporting them in protests and police started to arrest everybody
 
I see. Some of the stuff I've read describes it as a coup, that sounds a bit like it's being overstated...
 
@Withnail yeah, overstatement. They were 30 armed guys who took over only one police station. They were holding "hostages"(they weren't treated like hostages though) for 2 days but released them.
 
11:02 AM
Cheers, that's super helpful. :)
 
:) public television likes to misinterpret this story. They even went as far as calling them terrorists, which is funny considering how everybody supports them.
 
I love public television in these highly democratic countries
 
@poke :'(
 
cabbage!
 
people even made posters writing "Please, take us as hostages" lol
 
11:12 AM
@AndrasDeak Awww. I have a spitz
 
:)
they are quite uncommon here
 
@khajvah You Armenians have had a lot of experience dealing with foreign oppressors, so I guess it seems like a bit of a joke when it's just other Armenians wanting to do the oppressing. :)
 
I wish that was so simple
 
11:32 AM
@PM2Ring our government is worse than foreign oppressors
 
:(
 
@AndrasDeak It's simple human nature that we need political leaders, but many of the people who gain access to positions of power are not the kind of people that we want to wield political power. But I certainly agree that there's no simple solution to this age-old problem.
 
yeah there was a Douglas Adams quote about this here, maybe yesterday?
 
The old: It is a well-known fact that those people who most want to rule people are, ipso facto, those least suited to do it... anyone who is capable of getting themselves made President should on no account be allowed to do the job.?
 
@PM2Ring yes, and it is even more visible on small countries like us as powerful countries can afford some stuff without people noticing it.
 
11:44 AM
^^
 
@JonClements yup
 
@PM2Ring yes I am using omdb for returning movie information, but in OMDB I have to feed either movie names or MovieID, so I am using imdb's all_titles or movie_rating's file those names I will fed to OMDB get get required information
 
@arshpreet Ah, ok.
 
Morning
 
@khajvah We try to make our government as transparent as possible, to make it hard for our politicians to hide corrupt activities. It's not impossible, of course, but it is getting harder & harder for politicians here to use their political power improperly.
In my state we have ICAC, the Independent Commission Against Corruption. In recent years, quite a few high-ranking politicians have lost their positions and their lucrative pensions due to findings of corruption.
 
11:57 AM
@PM2Ring that's awesome
 
@PM2Ring we have a committee against corruption too, whose president is the vice-president of the country and who ironically lives in a mansion
 
One of the recent casualties: Eddie Obeid.
 
As long as he does it ironically, that's fine
 
"A series of three investigative hearings by the Independent Commission Against Corruption between 2012 and 2014 into the conduct of Obeid and others found that Obeid acted in a corrupt manner in relation to cafe leases at Circular Quay and that he misused his position as a Member of Parliament to benefit his family's financial interests in both Direct Health Solutions and in water licences over the family's Bylong Valley farm."
 
@PM2Ring from what I understand, ordinary people have only the illusion of freedom and justice. I am skeptical about these "Independent" committees. Can easily be somebody's weapon against more powerful people.
 
12:02 PM
@PM2Ring wow brutal - removing a medal he got 30 years prior, and removing his honorific
I say brutal - I probably mean "the mildest things that can happen"
But I mean it's interesting that they even go as far as removing stuff like that
 
Sure. ICAC isn't perfect, and it has come under criticism. But it does have a good track record of acting neutrally, and will go after suspected corrupt politicians in any party, the current governing party is certainly not immune from their investigations.
 
@PM2Ring in india we are struggling to create similar thing like ICAC which is called lokpal(en.wikipedia.org/wiki/Lokpal) due to this struggle comman people have formed it's own political party(aamaadmiparty.org) which has won 4 seats in center government and 68/70 for Delhi state in india.
 
@khajvah I'm pretty sure "independent" carries a different weight in Australia as in your country or mine
 
@PM2Ring here is the problem. We have laws and rights and everything but if the government is capable of closing its eyes on those laws at any point, it becomes meaningless. As far as I can see, it's just an illusion of democracy
 
Even something relatively benign, eg a politician using their travel allowance for reasons not strictly connected with their political post, is enough to get ICAC onto them. As for accepting bribes, forget it, unless there's zero paper trail.
 
12:06 PM
@AndrasDeak I don't think it's much different.
 
@PM2Ring that's good
 
@khajvah why do you think that?
 
Given that there's constant pressure for politicians to vote themselves pay rises and little get-outs, I almost think there can't be too much counterpressure
 
just because you and I live in shitty pseudo-democracies doesn't mean that all democracies are shitty
 
Well, I am assuming the worst. If it can, in theory, be somebody's weapon, I can never be certain.
 
12:07 PM
it all depends on morals
if society removes the assholes forming a cancerous lump on the body of the country, there's hope
here in Hungary, there's a general atmosphere of apathy and opportunism that facilitates the persistence of the status quo
 
Wonder why they don't just say, "If you want to be a politician, very financial transaction you make related to your position - salary, expenses, deductions - is a matter of public record, and hosted online to be made available for anyone to analyse.
 
most people go "meh", and those who don't go "meh" usually stand in line for a piece of the cake
or entirely powerless
 
Here, they are threatening people that we are at war and any inside instability will have bad results
but people can't take it any more.
@AndrasDeak we have >30% poverty rate, we can't have cakes :D
 
We don't have poverty. The Central Office of Statistics said so.
to be fair, they removed the definition of poverty because "it's not informative" and failed to replace it with something else
 
just imagine, this is the official stats. Reality is much worse
lol that's nice
 
12:13 PM
and it wasn't exactly poverty, but living wage
 
@AndrasDeak Shit still happens here, but at least there's a good chance that the shitty ones will get found out & punished. But it took us a long time to get here. If you have a political culture where various forms of bribery and exploitation of your position for personal gain are common, it can be hard to clean up the shit, since it's hard to find people you can trust to clean up the mess. But you gotta start somewhere.
 
(I think before they removed the living wage, 4 million out of <10 million were making below that)
@PM2Ring we're still in the process of exploring the possibilities. Not clean-up, but bribery and exploitation:P
 
oh bribery is a terrible issue here too.
 
Andras, in a tangentially related thing - can you recommend some good run-by-locals cafes and restaurants around District V/VI? Prefer giving my touristcash to proper people.
 
@Withnail proper people? Wrong country:P
 
12:19 PM
You're so harsh! :)
 
hi all
 
@Withnail Unfortunately I'm not much of a person for eating out properly. I definitely don't know any good cafes, and the only restaurant I know in the inner city is this one (but it's a nice place). Maybe you should ask @PeterVaro, he might be of more use in this subject:)
 
Ta! Will check that out.
 
also, I'm not much of a pub-goer:P But if you haven't been here, we have a thing called ruin pubs, which are an odd genre of pubs opened in abandoned buildings, usually with a very odd eclectic/cacophonic/whatever atmosphere. I'm not sure if actual people go to these places, but they're supposed to be very popular among hipsters:P And they've been popping up like mushrooms all over the city
though the ones I know are in district VII
 
Very popular with tourists as well, yeah - I've never actually visited in the summer. They're eh... less common in February. :)
 
12:31 PM
here's an article in a proper language
Szimpla Kert has some gas burners installed for colder weather:P
 
hmm, what do you think ruin bars' policy is on 4 year olds? :D
 
the same as non-ruin bars, I guess:D
 
I heard budapest is beautiful
 
@khajvah one of the positve attributes, yes. Especially at night:)
@Withnail the main problem might be a crowd and loud music which I found in these pubs (when I was last in one, years ago)
 
hehe, i'm mostly kidding. we might go round and check out a couple if they're open in the afternoon though.
 
12:34 PM
and in principle smoking is prohibited inside public areas, so it's even healthy for the child:P
oh yeah, important notice: the government and friends and family (quite literally) put its filthy claws on the tobacco market. Only designated shops will sell you tobacco, and these look like peep shows (Nemzeti Dohánybolt means National Tobacco Shop)
 
Hasn't that been the case for a while?
 
oh right, you've been here before:D
it's been like this for a while, I just find this to be a common source of confusion for foreigners
it's the first thing that comes to mind when somebody plans to come here, sorry
So I don't have to tell you to expect a lot of this:D
 
hahah, that's cool. It's been a few years. I didn't find it all like that though! ^^
 
I'm glad to hear that:) I hope that persists.
 
I might message you in a panic trying to buy train tickets at Keleti though ;)
 
12:40 PM
yeah, that'll be fun:D
 
And then i'll find someone in here who speaks Serbian to bug for the next stage :D
 
Wait, what? How did I get 255 points today? That's 45 for accepted answers plus 210 points before being capped.
 
show-off
@Withnail yeah, can't help you with that:D
 
@AndrasDeak it's probably the documentation rep code being buggy..
 
that sounds likely:)
since the other buggy things were not being buggy before SOD
 
12:41 PM
Ah, it's a cache issue somewhere.
The rep audit has me 10 points lower.
 
@AndrasDeak well, there were still bugs in there but far more subtle.
 
@MartijnPieters bah... so you're hogging all the votes hey? :p
 
I'd sometimes see offsets of 1 or 2 points.
 
#480kproblems
 
12:42 PM
@JonClements I'm always hogging the votes. Except for those that Jon Skeet is hogging.
 
That is true :)
 
Daniel Roseman's the worst for that. :P There you are, typing out your crappy but earnest answer, and he comes along and blithely answers it in an aside in a comment. The competent bastard.
 
flag the comment, go ahead answering:P
comments are just dust in the wind
I've also answered a lot of simple questions blithely in a comment, but it didn't hinder FGsITW at all;)
then again, I'm not a competent bastard, just a regular one
 
Is there anywhere in docs.python.org that mentions that _ is the idiomatic variable name for values you don't care about? I want to give an authoritative answer to ValueError: too many values to unpack - Is it possible to ignore one value?.
 
morning everyone
 
12:50 PM
There's a mention of _ in docs.python.org/3.1/reference/…, but not in reference to its use as a "throwaway"
 
_ gets set in the repl, right?
 
@Kevin I know that in JavaScript there is destructred assignment, are you looking for something in the same vein as that?
 
There's already an answer that suggests syntax like that, actually. It even uses the variable name rest. Interesting coincidence.
As expected, while I searched for a citation, two people posted answers suggesting _ but not actually backing up their claims that it's "commonly used"
 
boo:P
that's what you get for trying to be thorough
now go edit some docs to repent
 
@Kevin maybe this question?
 
12:54 PM
in python 3 I can do base64.a85encode(ipaddress.ip_address("192.168.0.1").packed) but in python 2 it gives me 'module' object has no attribute 'a85encode'
is there a simple workaround?
 
I could still make an answer that's technically better, but its marginal value would be small, so I wouldn't get any points.
@poke Yeah I thought about it, but it only feels like a home run for me if the official (tm) docs endorses it.
 
@eleanora Oh... I see you're trying to use my comment there :p
@eleanora if you're not using Python 3.4 you're a bit stuffed trying to use anything from that answer as ipaddress is Python 3.3 and the a85encode wasn't added until 3.4
 
@JonClements right!
I am using python 2
and thanks for the comment :)
ipaddress appears to exist in python 2.7.x. At least import ipaddress works
 

« first day (2112 days earlier)      last day (2839 days later) »