« first day (1244 days earlier)      last day (3718 days later) » 

3:00 PM
@Ffisegydd okay... you realise I'm not paying you for all the work though :)
(although, should we ever meet, I will ply thee with cider!)
 
       +-----+-----+
       | 2.7 | 3.X |
+------+-----+-----+
| 7/3  |  2  | 2.3 |
+------+-----+-----+
| 7//3 |  2  |  2  |
+------+-----+-----+
 
That's not what this contract says! It's got your paw print on it to prove it!
 
@Kevin did you make a table maker as well?
 
I have one, but I didn't use it for that
 
It may look to the untrained eye that I've just cut a potato into the shape of a paw and used it as a stamp, but I can assure you it is totally genuine.
 
3:01 PM
Making it by hand is faster than remembering where I stuck the module
 
@Ffisegydd you mean I'm being defrauded by a potato?
Not high-tech card cloning or identify theft... all it has taken is a potato...
 
I WILL NOW MASH, BOIL, FRY, ROAST, BAKE AND SAUTEE EVERY POTATO IN EXISTENCE... EVERY LAST ONE - THEY SHALL FEAR ME - THEY SHALL RESPECT THEIR PUPPY MASTER!
/me takes deep breathes and slowly calms down from maniacal declaration of potato genocide...
 
Though in all seriousness I don't mind working on stuff like this, I joined SO to learn and 1) doing stuff like this, and answering questions, etc, is a good way for me to learn, and 2) it's nice to give back to the community.
 
cabbage all
 
3:07 PM
cbg @Xavier
 
Potato infiltration techniques. 1. Bribe security guard with potato. 2. Disable security cameras by throwing potato at them. 3. Use potato to record sensitive data. 4. If caught, scapegoat the potato as mastermind
 
is there a canonical question about creating n dynamic variables and the right answer is creating a list of variable ?
 
We have one on the common questions page
 
No but if you find one post it back here and I'll add it to the list of such questions :P
 
Although it suggests using a dict, not a list
 
3:09 PM
@Kevin wouldn't using a potato as a scapegoat and declaring it a mastermind kind of belittle the puppy overlord's abilities though?
 
youtube.com/watch?v=wSxvDJPR47A vine compilation, slightly NSFW for some clips
there are some puppies in this compilation
oops sorry, for the thumbnail
is a vine compilation
should i remove it?
 
I suggest editing it to just be a text link
 
Perfect thumbnail is perfect.
 
hahahahah @Ffisegydd
 
I remember watching a vine compilation and it was 100% hilarious. A few months later I watched another compilation and it was 90% twerking.
Seems that the site culture took a hard turn somewhere
 
3:12 PM
i watched this one and it has 15% twerking
seems that twerking is not a trend since it was approved as a official word
 
Off to the bin of discarded fads with ye
 
but seems to be that monocles are hype nowadays
 
You can go between "Harlem Shake" and "Gangnam Style"
 
@Markical so introducing such a farcical word with absurd definition into the dictionary has suddenly made it uncool - bonus!
 
3:15 PM
Monocles are badass, unfortunately neither of my eyes work properly so I'd need 2 :(
 
@Ffisegydd install a cloaking device on the other one....
 
hahahaha
is over 9000!!!!
 
@Ffisegydd I found stackoverflow.com/a/1934389/128629 not the top answer with variable
 
@Xavier cheers I'll add it later today.
 
I guess it would make a good accompaniment to the existing "How can I create lists from a list of strings?", which is a little narrow since most people don't have a list to begin with
 
3:25 PM
@Ffisegydd's rivalling you for most prolific contributor @Kevin... :p
 
Yeah, but since he foolishly linked the wiki page, I can begin adding things again >:-)
 
@Kevin we should join our forces and rule them all as cartoon and gravatar...
 
I'll never join you! dives into garbage chute
NEVERRRrrrrrr.....
 
today i should do a test for a new job interview
2 hours of code, algorithms, testing, oop and devel stuff
 
(is this the point that @Ffisegydd declares... "But @Kevin - I am your SON!")
cbg @Paolo!
 
3:30 PM
cbg all :)
 
That can't be! That's impossible!
 
cbg
 
Actually, I suppose it is possible. Just improbable.
 
@Kevin I'd be curious to see what the other gravatar would have been for the result of your procreation to be Stewie from family guy...
 
3:43 PM
is there a way to decorate one line of code? I have bunch of formatting lines and I want to catch if there are exceptions, but rather than doing try/except every line, looking for cleaner solutions
 
CGI Hand Farts ...
 
4:07 PM
right mates. Is there a way, in flask, to specify multiple static folders?
 
@Crow why don't you use subfolders inside the static folder?
 
I like a different file structure
 
It's preferable and more organizable to put the static files in a single folder and subfolders, hence Flask also has option for just one folder. When you deploy, you can then easily serve this directory with any server software like nginx, apache etc
 
4:24 PM
@Bibhas ugh
hated that movie :|
how could they ruin something so great
 
blehhh this is so annoying
 
Cabbage!
 
@poke cabbage!
 
@Ahmad But the sound track was awesome. <3 Brian Tyler
 
That's one of my "we must never speak of this" movies
Stop speaking of it, btw
I'd give some other examples, but, you know... I must never speak of them.
 
4:31 PM
You know this soundtrack that was made for a movie that doesn’t exist? It’s awesome.
 
:-)
 
True the soundtrack is nice
Another movie that didn't actually exist: The Last Airbender
I hate this shyamalan guy for this movie
Wort. Ever.
Literally watched the first half hour and couldn't go further.
 
You successfully guessed another one!
 
Also that fourth movie of this awesome trilogy with Harrison Ford.
 
But if M. Night had never been born, we wouldn't have gotten Unbreakable or the Sixth Sense, so I think he's still a net gain for humanity
@poke and also the fifth and sixth. Or are we talking about the Harrison Ford trilogy that doesn't involve wars in the stars? ;-)
 
4:35 PM
Except that he doesn’t get better and does stuff like After Earth…
@Kevin Yes. I was meaning that. That additional trilogy of the other awesome trilogy wasn’t that bad; not bad enough to avoid mentioning it. And I hope the seventh movie won’t fall into that category either.
 
Movies are like "Voldemort" now are they?
 
I never understood the idea of continuing a franchise after so many years. To me, the heart of a creative work comes from the people that made it. If you make a sequel with none of the original scriptwriters or directors, then it's just fanfiction.
There's no reason to expect that it will capture the magic of the original if the only thing that's the same is the setting
 
heya @Viral
 
@Kevin Fan fiction sold as canon.
 
@poke William Shatner wrote some Star Trek novels (unsurprisingly the main character being Cpt Kirk.) - I'm not quite sure if that was canon or not...
Woo hoo... got a login to the python.org site :)
I just wonder how many django admin screens I'm going to see in a life time...
 
5:00 PM
Rhubarb, time for the tests, see you tomorrow
 
@markcial good luck - rbrb
 
bon chance et adieu
 
I make mistakes too when speed reading a question, but those two other answerers on the why doesn't the operator module have boolean operator functions post took their merry time to realise how far away from the actual question they batted. ..
@JonClements What did you volunteer for?
ah, found your post.
:-)
Glad to see so many people respond to that call.
 
Well, I've gotten work through it... so thought I'd put my 2p in :)
@Martijn I'm a bit annoyed I only saw it this morning
 
Which call are we responding to?
 
5:04 PM
@Martijn aww yes, I see you're subscribed to the mailing list :)
 
@JonClements I am one of the postmasters and mailman moderators.
 
@Martijn I remember you saying :)
 
And I did that job board thing for a year or two
@Kevin volunteers to manage the Python job board
 
It's strange then that I've met you, and I've also had quite a few email discussions with Chris over the years :)
 
This was well before Chris took over so ably.
 
5:06 PM
Thanks for the link.
 
He had just the right level of strictness to whip the board into shape as the number of submissions grew.
I am sorta ignoring the job board list traffic at the moment, should have noticed your name though.
 
@Martijn and I would have got away with it if it wasn't for those pesky kids! :)
 
And that talking dog, too! (A relative of yours?)
 
@Kevin use to go to school with his nephew actually
 
Not sure how great danes and yellow bigheads fit on the breed family tree
 
5:12 PM
@Kevin we need to invent a much more attractive name than the "yellow bighead" breed
 
And another 2 posts explaining the difference in how or returns the first truth value, missing the whole point of the question..
 
How can I trace which variable/line caused an error in exception?
so if
try:
a = do stuff
b = do stuff
except ValueError:
print which ever actually caused the error
 
Nope, still doesn't get it..
Sure, I'll explain about evaluating things that are not primitives then. — 2rs2ts 1 min ago
I am not sure he understood my comment..
 
@rodling You could print the stack trace. Umm, which module was that again...
somemoduleIForget.getStackTrace()
ah, it's the traceback module
 
shpanks!
 
5:17 PM
That's 4 deleted answers now, with a 5th wrong answer still there with a downvote. Anyone see how that question could be improved at all? I thought it was clear.
 
actually i dont see that in traceback
 
Yeah I made up the method name too
 
:(
 
ah, you want extract_tb
the second element of the returned tuple is the line number
import sys
import traceback

try:
    1/0
except ZeroDivisionError as e:
    type, value, tb = sys.exc_info()
    print "error on line {}".format(traceback.extract_tb(tb)[0][1])
Er, "the first element of the returned list is a tuple whose second element is the line number"
 
hmm, closer but what about which variable caused it? because line # can change as i write code
 
5:23 PM
not all exceptions are caused by a variable. For instance, the ZeroDivisionError I just raised.
 
tis true
i am just trying to put bunch of similar formatting lines in one try and then figure out which one errored and respond to it
rather than have many Try:/except: combos
 
Why not just print the traceback that will show the line of code cause the problem?
 
@rodling traceback.print_exc()
 
The fourth element of the tuple from extract_tb contains the line that caused the error.
But yeah, just printing the traceback would be easier
Even more easier: don't catch anything, and let it crash. The resulting natural traceback will give you plenty of information
 
that's something I'm realizing for a current codebase.
 
5:28 PM
yea seems like there is no easy way around this...
 
Perhaps you could do your formatting in a loop, if they really are similar.
 
these PHP questions and their mysql_query(). sigh.
 
Then you only need one try
ex. Instead of
try:
    do_a_thing(a1, b1)
except ThingFailedException:
    print "couldn't do a thing to a1 and b1"
try:
    do_a_thing(a2, b2)
except ThingFailedException:
    print "couldn't do a thing to a2 and b2"
try:
    do_a_thing(a3, b3)
except ThingFailedException:
    print "couldn't do a thing to a3 and b3"
You can do
As = [a1, a2, a3]
Bs = [b1, b2, b3]
for a,b in zip(As, Bs):
    try:
        do_a_thing(a,b)
    except ThingFailedException:
        print "couldn't do a thing to {} and {}".format(a,b)
 
w00t - a beautifully ugly iter, islice and cycle answer...
 
2
Q: What's the best way to convert server side HTML into a Javascript MVC on page load?

AdamI'm trying to build a quick and dirty Javascript library that makes it really easy to work with initial server generated HTML pages and then performing further actions in Javascript. My issue is that most Javascript MVC solutions out there, both frameworks and patterns, rely on separating the da...

 
5:36 PM
@JonClements I have revised my post to show the first 40+ lines of data — Cwilliams 16 mins ago
Ah, I love OPs that are responsive to requests for better input :-) +1
 
@Kevin yep... I was pleasantly surprised myself!
 
I like the lambda limit=cycle([4, 40]) bit... Using the mutable default argument for the sake of good
 
I thought it was cunningly nasty :)
 
And the two argument form of iter, and the classic izip(* [iter(lines)] * 2)... The gang's all here
 
I'm just hoping he doesn't ask me to explain it
 
5:50 PM
couldn't fit chain in there? tsk
 
I supposed I could chain.from_iterable(repeat(cycle([4, 40]))) or something
 
an itertools obfuscation challenge sounds like fun, I should post that on code golf
 
@Kevin reckon we should try and get a yield from in there :)
 
mm hmm, and make every variable name a mix of indistinguishable unicode characters
 
DSM
@JonClements: looking at your version two reminds me of this which I've often wished there was a version of in the stdlib.
BTW, cbg, all. :^)
 
5:57 PM
@DSM cbg
 
@DSM huh I swear I've written a similar function (less succinctly) like 2 or 3 times myself. more-itertools sounds like a good home for it
 
@roippi @DSM I know abarnet had one commit accepted, but I've looked at that, and it seems to have a few issues/with valid code, that has neither been commented on or accepted... so I'm not sure if it's stagnated or something...
but yeah, it is one of my "install first" libraries... even if it just ends up not having to copy/paste from the itertools documentation the recipes
 
DSM
I don't know if I knew it existed before he mentioned it. Part of me thinks that if I'm installing it I should give up and switch to writing Haskell or something..
 
@DSM it's only because of him I knew of it...
he mentioned it in a few posts, and I thought it worth checking out, as he strikes me (from his posts and his tone) that if he's suggesting it, it's definitely something worth considering.
 
DSM
His Python blog makes for good reading too.
 
@DSM he has one? I didn't see one in his profile?
 
Voted. Just as well, automated trading is a good way to lose a bunch of money
"Please don't suggest online sites as I don't want to reveal the trading strategy." Ah, such plucky spirit! :-D Surely your trading strategy will succeed where so many have failed.
 
DSM
@JonClements: stupid Python ideas.
@Kevin: my firm spent some time last fall doing some trading analytics. After the first few weeks I realized I preferred problems where there weren't lots of other people trying to arbitrage everything I noticed away, and was glad I wasn't point.
 
@DSM thanks... he looks younger than I thought he was
 
6:19 PM
We should be adding these to the wiki
(although I'm as guilty as the next person for forgetting to do so)
 
Yuck, I really dislike percent style formatting
I'll add it to the wiki if I can be bothered
 
Should we limit close-vote requests for Python-related tags only?
I don't mind the occasional definitely-stoopid non-python question, I guess, but perhaps we should draw a line.
 
Log in successful... Now to navigate to the common questions wiki page. Damn! The starred post containing the link fell off the front of the list.
 
@martijn In this room - no limiting is required... I quite often link posts that I notice that need to get gone quickly here...
I don't think any regular members that participate in the cv-pls are going to be spamming here with purely haskell/ruby/etc...
 
6:24 PM
I'm guilty of posting non python requests myself. But only language agnostic questions, so nobody should feel out of their field of expertise
 
That's what I would use cv-pls links to non-python posts for too.
Stuff that needs closing reasonably fast but would not otherwise get the necessary CV attention.
 
@Martijn so it appears we're all following the same unspoken rule for close vote requests then...
@Martijn any particular reason you bring that up now? Just a random observation or did you have concerns about it?
 
Ok, percents added to the FAQ
 
The link Bibhas posted triggered it, but I've seen a few links being posted to questions that I wasn't certain required our help lately.
 
I guess because of that cv I requested
 
6:28 PM
with "percent" and "%" mentioned in the title for maximum ctrl-f compatibility
 
I posted a C# CV earlier because the C# community is just unable to close stuff on their own…
 
@poke I thought it a reasonable dupe - so I guess that (2) is you and I :p
 
I posted it because it was really a generic lack-of-information kind of post. There was no vb specific information in it that would make it tough for a Python dev to consider closing it
 
@Jon Yeah… :P Posted it in the C# room, was apparently ignored…
rbrb dinner
 
@Bibhas the fact that it's a VB question is surely sufficient for closure? :p
 
6:31 PM
@JonClements :P
 
ohoho
 
I remember the time I made a scientific calculator in VB. Felt like I'm in school and dragging and dropping stuff.
 
Right, let's see if I can get a working clone of python.org
 
@JonClements why?
 
Wanna toy with a few bits
Hahahaha.... Cheatsheet for Front End devs that know enough to be dangerous
 
6:42 PM
Wow, the __trunc__ method is severely underdocumented in the 2.x documentation.
The 3.x documentation doesn't do much better either.
 
You could say it's quite... Truncated. dons sunglasses
 
DSM
Yeeaaaaaaaaaaaaahhh!
 
/me slaps @Kevin and @DSM around a bit with a large trout
 
oof! pow! biff!
 
DSM
Martijn is right about __trunc__. It's not in any of the places I'd ordinarily direct people to look.
 
6:51 PM
Wow... I use to like The Raccoons - awesome theme song
 
That's a little too early for me
Or it just didn't make it to the US
Ah, nope, aired here in '85
 
DSM
Grief, I remember that. I can hear the character voices if I think about it for a bit.
 
@DSM a mate and I were playing with the new TV and having a couple of beers, and we just ended up taking it in turn to screencast to the TV youtube videos of cartoons/kids shows from the 80s :p... nostalgic evening - quite enjoyed it
 
Well, that's certainly not the kind of thing I expect from an opening theme song
Reading the Wiki article... You know it's got to be good because every episode title has an exclamation point in it!
 
But of course!
 
6:59 PM
And every episode has its own page, so it's got at least one crackpot fan
 
DSM
Do kids today watch cartoons?
 
I don't know if children watch cartoons. Manchildren definitely do, though
(source: me)
 
@DSM I've seen remakes of mickey mouse and scooby doo and the smurfs, and they're all CG... they feel "cold" somehow (or I'm just looking back with rose tinted glasses)
 
@JonClements, that's a common opinion
Traditional animation is free to break a lot more rules than CGI, so the latter feels stiff in comparison
 
In fact, I don't think I've seen a remake of a classic that I liked
thundercats remake is beep - didn't enjoy
watched the pilot of the original and thoroughly enjoyed that though
 
DSM
7:03 PM
@JonClements: you take that back. The remake was very much better.
And (although I'm dating myself here) I remember watching the original.
 
Hmm, remakes, remakes, what's a good remake
 
@DSM b-b-b-but... snarf.... snarf... :(
 
The restored Dragonball Z series cuts out a lot of extraneous powering up scenes
Although they're just editing old assets so I guess it's not a true remake
 
DSM
JL/JLU was much better than the one or two original JL cartoons I saw.
They were practically unwatchable.
 
Do you mean their spiritual ancestor, SuperFriends? :-D
 
7:07 PM
@Kevin they call it remastered, right?
 
Yeah, that was less than great
@Bibhas Yeah
Now with 80% less exploding Namek!
 
:P
or maybe 10 less episodes with Goku trying to power up for a single kamehameha/spirit bomb/whatever
 
DSM
I find it vaguely reassuring that there are bits of pop culture I don't get at all. Never read or watched any Harry Potter; never watched any Dragonball.
 
okay, out for a bit
rbrb
 
I think everyone has a few megahits that they let slip through the cracks
I've never seen a James Bond film.
However I have seen at least two Austin Powers films, so I get the gist.
 
7:12 PM
@Martijn rbrb
 
I've never watched a single Star trek episode. -_- but I've watched Star Wars several couple of times.
 
@Bibhas not a single ST episode?
 
@JonClements no. :| Mostly because I couldn't download any series and The first question that hit me is where to start
 
DSM
I've never seen any of the Godfather movies, so all I know of the plots has come from references in other things.
 
I watch Next Generation reruns on BBC completely in random order, and I picked up the plot well enough
 
7:14 PM
Godfather I've watched several times.
 
DSM
@Kevin: that's probably right-- there are only a handful of arcs that need an order, and relatively few callbacks.
 
Any star trek reference I know of is because of TBBT
 
In one episode, Picard is like "I learned to play the flute while living out an alternate lifetime in a virtual medieval village", and I thought, "I'd rather be watching that episode"
I'll see it eventually, I guess
 
@Kevin the episode's called "The Inner Light"
 
I'll keep an eye out for it :-)
 
DSM
7:19 PM
@JonClements: geek points if you can remember the Stewart-related bit of trivia about The Inner Light.
 
It's one of the few that's really good to highlight Picard as an individual - a nice one to go along with "Family" (after he got assimilated)
and "Lessons" where he had a bit of a relationship going on
@DSM err... his son was played by his son? Is that the snippet you're after?
 
DSM
"I have all ze specs and diagrams at home!"
@JonClements: yep. Don't know why I know that, but I do.
 
I have the technical manuals ;(
And the encyclopedias
Ooo, guess what I saw while out today... (not trek related, but for some reason reminded me)
 
A hedge!
 
DSM
A water fountain?
 
7:22 PM
a bald guy
 
Oh... all of those... darn it...
 
a bald guy sitting beside a water fountain right by a hedge?
 
A three legged puppy with an overly large head? Did you see him in a shiny, reflective object?
 
@Ffisegydd will you stop pointing out my handicap... The other dogs don't want to know me not only because I talk, but also because I only have three legs :*(
sighs... to be a normal dog... whimpers
 
a bald guy sitting beside a water fountain right by a hedge playing with a three legged puppy with overly large head
 
7:24 PM
D: I'm sorry ickle puppy...
 
a bald guy sitting beside a water fountain right by a hedge playing with a three legged puppy with overly large head who wants to be a normal dog
 
ahh found it...
 
DSM
Well, don't keep us in suspense. I can't go for lunch until I find out.
 
@Bibhas I don't have an overly large head... it needs to be that big for my gorgeous blue eyes, dammit!
 
:O
 
7:29 PM
If you're all going to pick on me, I'll take my squeeky toy and go chew it to death in the corner... toddles off
 
You don't have an overly large head, you just have a tiny, tiny body...
 
Strategy guides are so 90s
 
I've still got my old Final Fantasy strategy guides, such beautiful books...
 
user559633
I thought meinkraft was an open-ended game
 
@Ffisegydd the artist that painted me had a really distorted sense of perspective alright!?
Wow... great advertising for Python here... just getting the python.org clone setup, and get this:
b"ERROR: Can't find ruby library file or shared library susy\ndirname: missing operand\nTry 'dirname --help' for more information.\ndirname: missing operand\nTry 'dirname --help' for more information.\n/usr/bin/env: sass: No such file or directory\n"
Admin works though... hmpph
 
7:40 PM
@tristan Mostly, although there is an "end boss" whose defeat causes the credits to roll. It's mostly an in-joke, though
There's a text-only epilogue that was written by a fan chosen at random. It's bunk.
 
Well... I do appear to be missing a signifcant portion of the top bar... but kind of working: sopython.com:60006
Um... might need to install yui-compressor or something
And might have spotted a slight bug: RuntimeError: dictionary changed size during iteration
This really is a work in progress launch of python.org... very strange given the general attitude to Python release dates and moratoriums..
@Kyle welcome
 
Thanks! Good afternoon.
 
@Kyle how's it going?
 
7:57 PM
Things are good! Just thought I'd hop on and see what this is all about.
 
@Kyle oh... the conversation here is normally somewhat eclectic :)
 
I've noticed, scrolling up :)
 

« first day (1244 days earlier)      last day (3718 days later) »