« first day (1514 days earlier)      last day (3449 days later) » 

12:56 AM
cbg
 
@JonClements how r ya?
python + bunny ;)
 
@majnemɪzdæn not bad thanks - a little tired... but otherwise fine - you?
 
1:13 AM
hrmph. How can I trick this API to get a full-sized image somehow?
 
dangle cabbages in front of it?
 
only works for pythonistas :( how do you think I write all my code?
 
with a quill?
 
yes, then I mail it to the python organization to have it interpreted
 
sounds a flawless methodology
 
1:20 AM
"how do I optimize this code?" "stop mailing it to us and just do it with a computer"
it'll be at least a million times faster
 
but you're keeping them in employment!? :)
 
nope, just distracting them from making python 4.0
3
 
 
2 hours later…
3:47 AM
@JonClements sorry, I disappeared for awhile
@JonClements considering you were tired hours ago, I presume you'll now be sleeping :) - catch ya later
 
haha... nope
another 5/6 hours until I'm finished :)
 
4:00 AM
@JonClements gotcha
@JonClements p.s. thanks for your help last night/this morning
despite merely helping reiterate the error in plain language - I was eventually able to solve the problem
and I learned how to pool connections
 
excellent :)
 
and why I should never write my own ORM ever again
and my apologies for disappearing for 45n minutes, it's because I am watching n contiguous episodes of a show on Netflix :P
 
Ahh... no worries :)
 
 
1 hour later…
5:29 AM
cbg!
 
I just woke from 6 hour sleep and you still here. Haven't slept yet? :)
 
Cabbage guys
 
5:44 AM
cbg @thefourtheye - how ya been?
 
@JonClements Hey Puppy, travelled a lot in the last three days... Very tired... How are you?
 
Very tired... some late nights (as usual)... had some good travelling?
 
I went to my hometown, for my Grandfa's funeral...
And I travelled by train... Boy, its terrible
I am too tall to travel in them... My knees hurt.. :'(
 
aww :)
Why didn't you just stay on all fours?
 
fours? I didn't get it puppy :(
 
5:51 AM
You're a puppy... why'd you try and stand all the way on two legs :(
 
lol, I didn't think of that... Next time, I ll travel like that :D
 
you silly puppy
 
Good puppies learn from mistakes :)
 
indeed
 
6:48 AM
@Martijn cbg
@Ffisegydd what's the name of that wrapper around matplotlib that makes things nicer? "something breeze"?
 
7:23 AM
cbg @JohnY
 
7:49 AM
Hello friends
 
Greetings - a name change, hey?
 
cbg @Jerry
 
Could you please assist me in understanding why the Python interpreter says Person is not defined referencing the birth method of class Person when I have defined it:
class Person:
	def __init__(self, name, height, weight, sex):
		self.name = name
		self.height = height
		self.weight = weight
		self.sex = sex
		self.children = []
	def __call__(self):
		if self.sex == True: sex = 'female'
		else: sex = 'male'
		print 'My name is %s. I weigh %d. My height is %d. I am %s.' % (self.name, self.height, self.weight, sex)
 
@JonClements Cbg!
 
7:53 AM
I thought I had defined the constructor
 
cabbage
 
8:12 AM
cbg
@Ffisegydd!!!!!!!!!!!!!!!!!!!!!!!!!!!1
 
@Jon!!!!!!
It's called seaborn btw
 
ahhh... I was thinking along the lines of sea breeze
I was almost there
 
You should import them in a certain order I think, check the examples to see
Though maybe it doesn't matter anymore (if it ever did)
 
cheers - will have a look in a bit :)
 
So you cannot construct an instance of a class within that class' method right?
 
8:19 AM
No
It also looks positively awful from a readability point of view
In fact your whole code breaks readability rules
And doesn't inherit from object
 
I thought that was implicit
 
In Python 3.x it is, but either your print's wrong, or you're not using Python 3.x :)
 
Thanks
 
(You could possibly have a future import, but I'm taking a guess you don't)
 
I am using Python 2.7.8 and just explicitly inherited from object and it worked
Thanks guys. So in Python 2.7.8, if you do there is more to class inheritance. I will get some extensive literature on this. Thanks again
 
It is not clear what the code above is since it is absent
 
8:37 AM
I generally inherit from object even in Py3
It does no harm (as far as I know)
 
Right, was up 24 hours in a row, then got 4 hours sleep yesterday evening before starting again, so that's already ~8 hours today... stuff's compiling and loading, so I think I'm going to grab 2hrs nap
 
@Ffisegydd and I have learnt that if you are going to construct instances of the class in that class your inheritance must be explicit but I will find out why it is so because the underlying concept might have consequences on other code I write.
 
8:52 AM
cbg all
 
cbg!
 
So lists behave like dynamic arrays of Python abstract objects
 
You can think of it as a std::vector with no constraint of the type I guess
 
@MoonOwlPrince yup. while technically they behaves like the programming definition of lists.. :D en.wikipedia.org/wiki/List_%28abstract_data_type%29
 
And btw, if I am ask. Suppose I have class instances constructed in a method of that same class like in the snippet I posted. If I have great grand children, is there a syntactic way of magically referencing a grandchild by name without the need to make explicit references to the lists
 
9:00 AM
in dynamic languages array and lists (concepts) are often used interchangeably
 
I prefer to reserve the term array to refer to a statically typed list that cannot vary in length
Anything that starts to vary in length during runtime is a vector
 
@MoonOwlPrince and that is the correct definition
@MoonOwlPrince a graph varies in length.. do you consider it a vector?
 
I should have been specific. Any array
 
eheh :)
 
I shall study polymorphism in Python as well
 
9:08 AM
Hello guys
could anybody help me with some issue about visualizing some program structure?
 
9:22 AM
and then enters the Er.
cbg all
 
cbg @tila @ml_guy
 
cbg @PaoloCasciello
 
Cbg :)
 
cbg @ian
 
Potato Paolo?
 
9:30 AM
banana, you?
 
@MoonOwlPrince When constructing classes in Python 2 you should always be explicit and inherit from object.
There may probably be 1 time in 100,000 that you would want to hamstring yourself and use old-style classes. I cannot personally think of such a situation but I am open to its existence.
But the 99.999% rule is: inherit from object.
I have found my English counterpart stackoverflow.com/users/4159833/physicist
 
9:48 AM
@PaoloCasciello not too bad ty :)
 
10:22 AM
i love when upgrading a full app stack with pip install -U just works... !!
 
@Ffisegydd I learnt so. Thanks
So if anyone sees a book by written by Ken A. Lambert titled Fundamentals of Python: From First Programs to Data Structures First Edition (which uses Python 2.5) read it knowing Ken A. Lambert is a mere mortal and that he made the mistake of claiming that it is okay to not be explicit and that the interpreter automagically inserts it in for us which is wrong from what I have learnt thanks to Ffisegydd
 
10:38 AM
Are you sure it uses Python 2.5? The only copies I can find seem to use 3.
 
@MoonOwlPrince have your read the zen of python?
 
import this
 
@MoonOwlPrince so where's the point of not being explicit?
apart from personal laziness
 
There is none
 
10:45 AM
 
11:27 AM
cbg pup
Have a nice nap?
 
yes... thank you
just paid linode
 
I saw
Which is how I knew you were awake :P
 
ahhh
 
They should call me Sherlock.
 
I'm glad it's that... otherwise I'd have to keep the curtains closed :)
 
11:31 AM
Close the curtains if you want. I've already set the cameras up inside :3
 
Ahh that's okay then.... as long as I can close the curtains and have my nap in the afternoons all safe and sound
 
linode is expensive
 
not as expensive as else where for the spec...
As soon as you go beyond $20/mth - linode becomes the most cost practical one
 
hmm
let me check the specs
 
Plus the customer support is, as I believe the kids nowadays say, "banging"
Yes I know exactly what you want, but if you start rounding things then for some inputs the ratio between the elements is not going to be the same as the original ratio. I don't think you can fix that, that's just mathematics for you. — Ffisegydd 2 mins ago
sigh
 
11:46 AM
sigh
 
/me burps
 
12:06 PM
@Ffisegydd, well fix maths goddamn it!
(/hello you and doggie)
 
this is really funny
 
12:37 PM
@Ian PUPPY! not "doggie"
Improvised bedroom setup while new door and windows are being fitted in the office...
 
user559633
vertically stacked? O_o.. who...are..you?
 
Well... it's sitting on a kitchen chair as I wasn't going to work in the kitchen or dismantle and rebuild a desk... it'll do for the mo' :)
 
1:03 PM
morning everyone
 
user559633
morning
 
@corvid Thou shalt greet your fellow chat room denizens with Cabbage or cbg, always.
None of this 'morning' malarky.
 
morning, cabbages
 
@corvid I should have you evicted for such cheek.
 
@Martijn except @Kevin - we have to allow him his little eccentricities :p
 
1:06 PM
is sorely tempted to try out the kick-mute feature now.
 
;-; lost 20 rep because of removed user.
 
but from Crow!? Into the gallows with him!
 
consoles @Ffisegydd
@Ffisegydd two removed users.
You were really unlucky there.
 
Possibly the same person then.
Unless they're on a spree lately.
 
Account deletions 9 seconds apart. A moderator cleaning out some socks, no doubt.
 
I recently answered a question, part of which contained a jsFiddle link. The OP wants to know if the page is "permanent". Anyone know off the top of their heads how long these things last? I quickly perused their FAQ but didn't see an answer.
I wonder if gist has comparable js running capabilities...
 
Not that I know of. But SO does now, no?
 
True. Too bad I lied and it wasn't an answer, it was a comment.
 
;_;
Ok, jsFiddle stores things semi-permanently
 
1:21 PM
I really don't like javascript very much :\
 
"Until beta, all fiddles are stored permanently" is not entirely comforting, really... He could move into beta at any second and destroy all existing fiddles.
Things I like about javascript: 1. function declaration expressions. 2. Users can run it without downloading anything
That's p much it
 
i want to make a convenient movie app that gives movies show times at different halls... but the cinema halls do not give their api or data... is it okay to just parse their website?
 
okay, need some clever ideas. I am using the RottenTomatoes API to grab some info, but their thumbnails are very small. What's some sleight of hand to get a decent resolution image?
wow. Tila. I'm doing that.
 
what a coincidence:D
how are you getting the show time info?
 
@tilaprimera knowing @corvid - probably some dodgy guy down the bar with bag full of "cheap" blu-rays :)
 
1:25 PM
@JonClements what knowing? movie "knowing"?
 
and it's just a movie of me eating cereal saying "THIS IS THE REAL HUNGER GAMES"
3
 
@Jon I'll see you in court for slandering my client!
 
parsing websites is generally OK if you're not causing them to lose business, and you're not overloading their systems with countless requests
 
@Ffisegydd how many barristers are you bringing? :)
 
All of them.
 
1:26 PM
If anything, broadcasting their movie times to a larger audience will increase business for them. Just don't scrape their page a million times a second.
 
melons
:D
 
I read somewhere that scraping imdb is against their terms, I was thinking of scraping for a high-res movie poster
 
i wont scrape imdb
 
I was trying to :\
 
@JonClements Same thing!
 
1:27 PM
(devil's advocate: if you're creating a price comparison site, then you are taking business away from the shoddier more expensive theaters and giving it to the more cost-effective ones. This is something of a gray area)
 
:D just some local cinema halls website and use imdb and others and such for the info that they give on movies via their apis
 
@IanClark I assure you - it most definitely is not...
 
366
Q: Does IMDB provide an API?

tusayI recently found a movie organizer application which fetches its data from the IMDB database. Does IMDB provide an API for this, or any third party APIs available?

 
user559633
just scrape it
 
yay tristan to the rescue
 
1:28 PM
You may also like omdbapi.com
 
scrape it is..
@Ffisegydd melons for the link
 
@Ffisegydd it looks like you have to donate to that one to get the img api?
 
ahhh.... this song reminds me of another song... it's bugging me what the other song is...
 
Dunno? Didn't read it.
I don't read things, I just post urls into chat.
 
for some reason, the navigation to generate an API key on all of these sites is so annoying to find
 
1:31 PM
I remember reading a challenge once to work a whole day listening to Nyan cat on repeat.
 
Only the worthy may get an API key.
Hint: the penitent man shall pass.
 
Only the penitent man may pass (and get - DAMNIT.
Fine. You win this one.
 
wow
 
TIL that a supreme court justice making rulings on internet privacy doesn't own a smart phone because he "doesn't know how to get past the password screen"
 
@tristan did i scare you?
 
1:37 PM
I wonder if courts in the past also had problems with tech non-savvy judges. All making rulings about the cotton gin without understanding what it was.
 
user559633
@tilaprimera with what?
 
my point exactly
 
I don't know what's going on here. (So, business as usual for me I guess)
 
:D kinda feel like i have tagged you unnecessarily in conversations..
off to search the word sorry in sopython salad
 
Not sure we have one. Sprouts
 
1:40 PM
sprouts!
@Ffisegydd laurels!
 
Ah...look at the WotD :D
 
cold ... is 15 degree celsius cold?
 
No
 
I amuses me that half of Salad's words are terms that were used once and then edited into the page anyway.
 
it's 10 Fahrenheit here, isn't 15 celsius pretty warm?
 
1:42 PM
wow! just wow!
 
Leading to many situations where hopeful neophytes use them to fit in, and end up signalling the opposite.
 
15C is pretty nice.
 
Causing me to go "'green bean'? What the heck is this guy saying?"
 
given 0c is 32f and 32f is a comfortable temperature
 
0C is cold but not uncomfortably cold.
 
1:43 PM
celsius is such a better system. I wish we used it here
 
oh wow... can you survive in shorts and trousers in 0 degrees?
 
0C is the exact point where I switch from my autumn coat to my winter coat.
 
a coat is a coat
and a goat is the same
 
@tilaprimera nah, I just prefer being cold to being hot. When it's hot, there's only so much you can do before it starts being illegal for "indecent exposure"
 
@tila I regularly walk around outside in just jeans a shirt when it's ~0C
 
1:45 PM
I have an IRL acquaintance who only ever wears shorts (dress code permitting)
July? Shorts. January? Shorts.
 
wow...
So, I might look like a full blown yeti if I come there, with all my winter coats and mufflers and caps and warmers and oh god.....
 
The coming of the ice giants and expansion of Niflheim into Midgard? Shorts.
 
:-)
 
My mother will kill me if I do not go out without a coat even when it is 20 degrees.
 
wat. That's really warm.
 
1:47 PM
Is it cold that causes us to be sick or what is it? Is it bad for health to tolerate cold and not put on warm?
I am adapted to my climate zone and people are gonna stare if I wear :D just a shirt and jeans in this cold..
 
@Ffisegydd It's not particularly warm in F - and not at all tolerable in K :)
 
Generally, germs cause you to be sick, rather than the weather.
 
so this is actually kinda funny. Some guy in an interview was asked "in javascript, what is the difference between: table, .table, #table, and table > tr?". He said #table was a HashTable. After he was asked "what would you rate your javascript skill out of 10 (10 being the highest, 1 being the lowest)?" and he said "9"
 
Everyone should use K.
 
I agree.
 
1:49 PM
******lol******
 
It's so hot today - it's in the 300s!
 
I dimly recall hearing that cold weather can put additional stress on your body, possibly weakening your immune system and making you more likely to catch something. I don't know how much truth there is to that.
 
Watching the devs upgrade parts of SE.
 
sometimes it get 20 degrees celsius and yet you feel so damn cold that even 10 jackets might not help..sort of feeling..what is that like?
 
1:50 PM
They spend most of the video playing video games.
 
Either wind chill or biological weirdness is to blame there.
 
come to think of it, if our body is cold, less likely are germs going to build in the body causing less of a chance of sickness
 
Depends on where the germs are. Even in freezing conditions, it's still 98 degrees inside you.
 
I feel like I'm doing everything wrong.
 
@corvid welcome to life
 
1:53 PM
[insert star bait response that denigrates corvid here]
3
 
@corvid you got an extra life for that!:D
 
[star kevin's post for ironic effect]
 
@Kevin i mean on the surface not insides
 
What is that, which starts with p and ends with e and has more than 1000 letters??
 
1:54 PM
Doing two separate calls to two separate APIs seems a bit unusual
 
Suggestions for a canonical dupe for this please guys - I've had a look, couldn't find a good up to date with all options Q and A's though
 
"post office"
 
no googling, if you do, please do not ruin it for the others
 
@Kevin well done, sir.
 
What is that, which can see but does not have eyes?
What is that, which has keys but can not open doors?
 
1:55 PM
The ravenous bugblatter beast of traal
 
Piano.
 
What is that, which is tall when young but short when it dies?
:D and etc etc
 
Candle
 
@MartijnPieters well done! Keyboard does it too.
 
or music.
 
1:56 PM
@MartijnPieters 1 point
 
Is it "man"? Statistically, 90% of riddles have a solution of "man"
 
@Kevin 1 point
@Ffisegydd 1 point
 
I really don't like the way javascript handles strings
 
that eye riddle............ isn't answer "webcam" too silly?
 
Can I convert this one point to a Stack Overflow reputation point? I'm short 1 to get back to a round number..
 
1:57 PM
We need to put a quiz into RABBIT. Anyone remember the old IRC bots? Where you could do !!question and it'll listen and assign points? We need this in our lives.
 
@JonClements Hmm, you'd think we'd have at least one "remove duplicates" target...
 
I am willing to switch lives with the IRC bots!
any volunteers?
 

« first day (1514 days earlier)      last day (3449 days later) »