« first day (2114 days earlier)      last day (2828 days later) » 
00:00 - 15:0015:00 - 00:00

3:00 PM
i've seen an almost definitive version. but we are all different. depends on what you're looking for in a space game. i am a realistic type of player. i love more realistic physics for example. Nothing extreme but in NMS is like star wars... which i don't like :D i'm a trekkie :P
like when entering or exiting a planet. in NMS is all automatic.
and thus the game is a succession of go-do_thingA/B/C-leave. repeate
until.. well.. no spoiler :)
 
@PaoloCasciello Oh ya know - always the same old :)
 
@JonClements :)
 
@Ffisegydd So when can I coerce (or when is FizzyGirl going to allow) you into playing Worms?
 
3:17 PM
Is this a game to see how many ways I can state they are not creating an instance of their class? stackoverflow.com/questions/38675268/…
 
@Martijn umm... looks like it could be fun... how many players does it support and can I join in? :p
 
@JonClements infinite and yes, please!
 
ah so I have to assign the class to a variable 1st then try to call them. I see now. — PSXGamerPro1 28 secs ago
Ooo... they're getting there!
 
Lets wait a bit. local_name = ClassObject is still an option here..
 
@JonClements which incarnation of worms? :)
 
3:27 PM
Clan Wars is the only copy I've got
 
on steam? nice i should get it. :) i was an avid worms player back in 90s... :/
 
If it goes on a sale again (which it should do since I think there's another game coming out soon) - it's worth a couple of pennies... but not its full price (imho)
 
yeah i played Worms Revolutions (if i recall the title correctly) and it too is nothing like the original :(
 
3:43 PM
It's certainly been through some remakes :)
I quite enjoyed the 3D version on the Wii - that was great fun
 
never tried it.
 
3:59 PM
cbg
 
4:44 PM
To delete or not to delete, that is the question: stackoverflow.com/questions/38676211/…
I'm sure it'll never be edited into something on-topic. OTOH, I don't want that account to post another such a dump.
Okay, deletion it is.
 
@MartijnPieters yuck
 
what's up people
 
5:09 PM
Huh, comments cannot contain "What have you tried?"?
 
I always use these
they are my favourite
 
comments can't only contain that; or one would have to use some empty space tricks to get past filter but usually easy to just expand
 
130
Q: "What have you tried" epidemic

Brian WebsterStatistics The usage of "what you tried" is growing (v2) In Q1 of 2012 - 0.0134 such comments per question (~1.33%) In Q2 of 2012 - 0.0167 such comments per question (~1.66%) In Q3 of 2012 - 0.0169 such comments per question (~1.68%) In Q4 of 2012 - 0.0193 such comments per question (~1.92%) I...

Please don't try to trick your way past the filter. It's an unhelpful comment.
 
what have you tried so far
:D
 
5:12 PM
Seriously, don't.
 
you think it's offensive or what ?
 
Ha, first comment starts with "What have you tried so far?"
Downvote and move on, then, I guess..
 
Well it isn't polite from OP to say : "Make program to count to 10!"
 
It's a kneejerk reaction, and there's no reason someone asking needs to have tried anything for a lot of questions.
 
Typically if I ask it is "Please, add any code you have tried...." with link to code formatting help topic
 
5:15 PM
 
...which actually worked, OP added code, with a powershell question earlier today (rare occurrence)
 
@JGreenwell sorry missed your message last night. I ended up passing out on my couch :P
demo went great actually. Thanks. :)
 
Well there you go ... it's a poor question, but "what have you tried?" doesn't really make sense as a response. A link to docs would be more appropriate.
 
That's okay, I take meds to sleep and peeve off my wife and friends all the time cause I literally fall asleep in the middle of speaking
 
I've fallen asleep in the middle of a board game once
 
5:18 PM
Did you get a hotel stuck to your face? That's the worst.
 
haha.
 
^ ouch
 
You know...I can't think of the last time I actually finished a game of Monopoly
 
@MarkoMackic Please read the links if you want to know why "What have you tried" is blocked.
 
@PM2Ring I'm reading right now
 
5:20 PM
Excellent.
 
stackoverflow.com/questions/38676472/curl-x-post-to-python I cv as too broad, but if anyone with a hammer has a good canon dupe for that one, go ahead and do your damage.
 
Fyi: copy and pasting comment from SOPython's list of useful comments is helpful
 
Yeah. I usually do. I was uber-lazy to change tabs
 
reminds me of Bender: "Let's just pray I have the energy to get another beer"
 
I can go for a Futurama binge
 
5:29 PM
I'm on a Monty Python binge after Family Guy/Anime binge....Futurama can be next (have a few CS related Netflix programs to look at so might be fun combo)
Monty Python needs no secondary subject - it is the secondary subject
 
well still WHYT constructive approach can be used, which is ok by me
 
what is WHYT?
 
What have you tried
 
ooooh
 
But than I'd rather just downvote do my homework questions, and even vote to close them, because I don't find myself obligated to do constructive conversations with OPs of these question
 
5:46 PM
And I 2 think that WHYT comments percentage is increasing because number of DMHW (approach) questions is increasing, but I may be wrong.
 
Sometimes the OP of a homework question has actually made an attempt at writing some code, but they don't post it because they don't want us to see how bad it is. So it's good to try & encourage them to post whatever they've tried.
Not only does it demonstrate that they're genuine, by seeing their code we can get an idea of their skill level, and what kind of misunderstandings have prevented them from completing the homework assignment themself. And of course, it's often easier to write a solution by modifying existing code than to write it from scratch... unless the code's so bad that you have to nuke it from orbit. ;)
 
You really need to start defining your acronyms.
They don't help if you're the only one that uses them.
 
FYATR
 
IKR
 
YATBF
 
5:49 PM
Any acronyms I see that I don't understand, I just assume they're racist and you're terrible.
Or, you know, AAISTIDUIJATRAYT
 
1000 points to gryffindor for figuring them out
Hint, the F is for Fizzy
 
Fizzy You Are The Radest.
 
You know...you were so close that I have to give that to you
 
You Are Totally Banging Fizzy
 
"The Best" but again close enough
so I'll double the points to gryffindor
WTG
 
5:51 PM
I still think it is funny how close foobar is to FUBAR
 
Way To Ginger.
 
hahah
 
@JGreen I was under the impression that it did come originally from FUBAR.
 
in fact I once put in a code review: "This code is FUBAR" and was informed I misspelled it
 
Well I think my acronyms are defined from transcript
 
5:52 PM
@MarkoMackic Nah, I don't think the number of Do My HomeWork questions is increasing, but the ratio of DMHW questions to decent questions may be increasing.
 
@Ffisegydd it is disputed, but possible
even probable for certain definitions of p
Do my Homework questions will increase next month
 
How do you mean the ratio is increasing if the number of questions is not increasing ?
 
It'll be even more Eternal September than normal.
 
eternal means (infinite time) ?
 
Ahhh... think I've solved it...
>>> from collections import defaultdict
>>> from random import choice
>>> dd = defaultdict(list)
>>> with open('/usr/share/dict/words') as fin:
	for line in fin:
		dd[line[0].upper()].append(line.strip())


>>> ' '.join(choice(dd[ch]) for ch in 'YATBF')
"yes ascertains transiency's Bengal fleshiest"
 
5:58 PM
@MarkoMackic Because the number of decent questions (that aren't dupes) is decreasing.
 
little bit in July when Germany picks up new students (but I see more of a question increase because of that on academia then SO)
 
How do you put line breaks in chat here?
 
Ok, that makes sense :D
 
@JakeStokes Shift+Enter
 
@JakeStokes use shift + enter
 
5:59 PM
Thanks
Now that I know, I can ask for help... :D
 
Figgy is faster :P thats not cool
 
come on
 
Fizzy is wired into the matrix
can't beat that speed
 
@MarkoMackic If a phrase you're unfamiliar with looks like it could be jargon it's a good idea to Google it...
Eternal September or the September that never ended is Usenet slang for a period beginning in September 1993, the month that Internet service provider America Online began offering Usenet access to its many users, overwhelming the existing culture for online forums. Before then, Usenet was largely restricted to colleges and universities. Every September, a large number of incoming freshmen would acquire access to Usenet for the first time, taking time to become accustomed to Usenet's standards of conduct and "netiquette". After a month or so, these new users would either learn to comply with the...
 
6:01 PM
@MarkoMackic Come on what?
 
That useless message didn't deserve trashing
 
You are, of course, entitled to your opinion.
 
> useless
 
And I stand behind it :) anyways it doesn't matter any more, you already moved it.
 
That's right, I have.
 
6:06 PM
What else have you done, @Ffisegydd? Anything you want to get off your chest?
 
I really dislike everyone here, but unfortunately I love Python too much to leave.
 
I wonder if there are more German users on academia (or just more in German programs/universities) than SO or if it just the ratios due to huge user base of SO compared to other sites
 
I secretly think that Python 2 is better than 3.
I once closed a question just to watch OP cry.
 
Once shot a man in Reno...
 
I really love dogs more than cats
 
6:07 PM
I'm here to kick users and chew bubblegum, and I'm all out of bubblegum.
 
:p
I'm here because there are very good people in this room, in C++ room everyone hates me :(
 
C++ people are gruff with most
reputation to maintain and all that
We try but keep ending up silly
 
@MarkoMackic You assume we don't hate you here.
 
@Ffisegydd well I'm not quite sure for you :) and I never assume before it is proven, thats quiet a risk.
 
4 mins ago, by Ffisegydd
I really dislike everyone here, but unfortunately I love Python too much to leave.
 
6:11 PM
Hmm, I don't know, English can be so imprecise.
 
dislike and hate are two different words
 
if you haven't asked a bad Flask question, I just assume that davidism tolerates you
 
Hi there. I'm trying to import some files as variable names.

for i in rl:
    with open('%s.pkl' % x, 'rb') as f:
        i = pickle.load(f)    for i in rl:
This is just creating a variable i instead of a variable names after i in the list 'rl'
 
Press Ctrl+K to format code. Press up to edit messages.
 
@JGreenwell barely
 
6:16 PM
Can anyone assist?
 
What is x?
 
ah it was i
 
now you're not !
 
Not what?
 
I was just changing x to i didn't finish before pasting it my bad
 
6:17 PM
obviously faster
 
DSM
Odds on this being a poorly-worded dynamic variable names question?
 
@JakeStokes of course it's creating a variable i, that's what you're assiging to the result of loads
 
That code isn't going to work anyway.
 
Thats not cool fizzy, you're mean ..
 
6:18 PM
Yep.
What do you expect i = pickle.load(f) for i in rl: to do?
 
Can I trash your message, you deserved it.
 
No.
 
I thought I was iterating through a list, where i would become the item in the list
so it would be 'item in list' = pickle.load...
 
Did you accidentally post for i in rl: twice?
 
yes
for i in rl:
    with open('%s.pkl' % i, 'rb') as f:
        i = pickle.load(f)
 
6:21 PM
Okay, but you're just going to repeatedly overwrite the i variable.
 
DSM
I declare victory.
 
so what i'm trying to do... is
If rl = ['example1', 'example2', 'example3']

example1 = pickle.load(f)
well that's what I need help with, I thought i was going to be the item in the list I was iterating through
 
89
Q: How do I create a variable number of variables in Python?

PyornideHow do I accomplish variable variables in Python? Here is an elaborative manual entry, for instance: Variable variables I hear this is a bad idea in general though, and it is a security hole in PHP. Is that true?

 
maybe I should use
 
The answer is "you don't, you create a list or dictionary".
examples = {}
example[i] = pickle.load
 
6:23 PM
Could I use

    for i in range(len(rl)):
        with open('%s.pkl' % i, 'rb') as f:
            rl[i] = pickle.load(f)
 
It's now official that i dislike fizzy.. and this message is probably gonna go in trash :( too much power is not a good thing :D
 
 
lol, thanks @Terry
wasn't expecting that
 
@davidism hehe... didn't even know Terry was running :p
 
I think there might only be a few images in its database.
 
6:24 PM
@JakeStokes No, because rl[i] is a string.
 
So i can't define a variable using the string name in the list then?
 
DSM
No, and why would you want to?
People who think they need to are usually trying to solve the wrong problem.
 
I'm pretty sure that is the case. It's a learning process...
 
You should be much more respectful, I didn't try to insult you, I was just joking, and deleting my messages with no reason isn't respectful.
 
@JakeStokes So what that code will do is to replace the string in the rl list with the unpickled object. It won't assign it to a variable that has the name of the string in rl[i]
 
6:28 PM
I see!
 
DSM
@JakeStokes: say you did manage to load them all up into variables named example1,example2,example3, and so on. Then if you wanted to do the same thing to each object, you'd have to write N lines of code, like example1_sum = sum(example1), example2_sum = sum(example2), etc.
 
let me explain so you can tell me just how ignorant I am
 
examples = {}
for r in rl:
    with open('{}.pkl'.format(r), 'rb') as f:
        examples[r] = pickle.load(f)
 
DSM
Or, you'd have to put them in a data structure anyway, so you could loop over them. In which case there's no reason not to use a dict or list in the first place.
 
now examples has the loaded data, indexed by name
 
6:29 PM
I am pickling various instances of a class I am creating, so that I can load them back in when I start it up without defining them again, as they require a lot of input.

Each instance of the class has its name saved to a list as it is pickled.

I want to use that list, and something along the lines of what I've tried above, to load up all the pickled class instances I have saved (which are all named in that list).

I could write a single line for each, but thought I might learn something trying it this way.
 
Do exactly what I wrote then, and examples[name] will have the instance for that name.
 
DSM
Using a dictionary here is basically just like having variable variable names, except the syntax is like examples[1] or examples['some_name'] instead of examples_1 or examples_some_name.
 
@MarkoMackic Beware of angering dragons (even fractal ones), for thou art crunchy, and go well with brie.
 
Okay I'll give that a shot now. So to confirm, what I was trying to do can't be done?
 
(For your learning purposes though) the idea of pickling instances like this (unless it took a significant amount of time (not code) to create) is a bit of an anti-pattern @Jake
 
6:32 PM
Heh, "Brie Rarebit" :-)
 
The only time I like pickling instances like this is when I pickle a machine learning model. In those cases the instance might have taken 1-2 hours of code running to create it (training).
And so pickling is definitely a good solution.
 
@PM2Ring we so should set up a sopy shop and have a gate plaque with "Beware the Fractal" on it :p
 
I love brie, had a great bacon and brie panini earlier.
 
@PM2Ring I can't understand thou and brie .
 
Thank for your help. I'll be back shortly, let me try this.
 
DSM
6:33 PM
@JakeStokes: it shouldn't be done, and will cause a lot of grief, just to save you typing [], so don't try.
 
thou is same as you ?
brie I can't translate on google translate
 
DSM
Brie is a cheese.
 
Well I usually use google translate but thanks davidism
 
@DSM quick one, is there a reason you have used {} and .format over %s?
 
DSM
6:35 PM
Doesn't google translate pop up a definition of the word?
 
@JakeStokes it's just a different format syntax, in this case it doesn't matter either way
 
DSM
@JakeStokes: think you mean davidism there, but {} formatting is more powerful in general, so it's the new standard. In toy cases like this there's not much advantage to using format but it's a good habit.
 
@MarkoMackic Yes, it's from old English. "Thou art" = "You are", except it has an ancient flavour, and "thou" is used when addressing a person of lower status. So my previous post is in the mood of an old man giving advice to a young person.
 
Hence the Yorkshire saying "Don't thee tha me, thee tha's them as tha's thee".
(where "tha" is a local dialect version of "thou")
 
Crystal clear.
 
6:39 PM
@DSM Thanks!
 
't i'nt in 'tin.
 
@PM2Ring you formed it almost as a poem :)
well thanks for advice, but you can't allow for someone to play with you because you're of lower status, I don't respect authorities that aren't good as people.
 
@MarkoMackic Honestly, whatever man. I don't understand your issue but if you want to whine about it then knock yourself out.
 
I don't have any issue
 
But that doesn't mean we have to listen to it.
 
6:44 PM
today I got thanked by two people I flagged (and they actually listened to my advice).....am I having a stroke?
 
Oh you don't have to listen if you don't want, I don't force you to anything.
 
@MarkoMackic try going outside and contemplating the phrase "lurk moar".
 
 
@JGreenwell Setting you up for the fall in September ;)
 
Thanks @Terry, we'll get you more bunnies soon.
 
6:44 PM
Yeah he needs more images. Preferably cats.
I'll start collecting.
 
@Ffisegydd ah, so it hurts more....yes, yes that makes sense. Pain is so much worse when you have forgotten it
 
@Kevin did you add the other pics yet? :D
 
my kids are loving those pictures btw
They've declared the second one the "Oy Vey Kitty"
 
Best website ever: http.cat
 
Rhubarb
 
6:54 PM
@PM2Ring rbrb
^^^ haven't heard that one in ages :)
The start of this one sounds kinda like the theme to Mortal Kombat... could be me though..
 
Was just reading a twitter thread of people complaining at Crockford's logic for prohibiting comments in JSON. It's quite fascinating; JSON is so goddamned successful, and has had such an impact on interop problems, that these young whippersnappers now find it hard to believe that abuse of comments to create incompatible dialects could be a problem.
 
Damn young people.
 
Kill 'em all, that's what I say.
 
Coming round here with their music and their weak typing.
Back in my day you declared all your variables at the top of your FORTRAN file and you were thankful for it.
 
@Zero reminds me of the various posts I've seen on FB: "It's reassuring to know that the youth that are blaming the older people for ruining their future by voting for Brexit are the ones running around chasing imaginary creatures on their phones" - or something
 
7:06 PM
When I were a lad, programs had flow and structure. Have you seen that Haskell? It's just noise!
 
hey... I thought it was "Michael Jackson" - everything's sequence, selection and iteration? ;p
 
In't it just! Back in my day we had good old fashioned gotos, this modern crap like Python don't even allow it now!
 
@JonClements :-D Although to be fair I think Sturgeon's Law applies there ...
 
Oh... and the other one - fishy by name and all that :p
 
DNC
I am getting this result:
u'de Re\xfcnie 23:00'
Instead of:
de Reünie 23:00
Code I am using:
parties2 = [h2.string for h2 in soup.findAll("b", itemprop="name")]
print parties2
How can I get exactly the same string as in the source?
 
7:14 PM
It is the same string.
 
There's no way that code is producing that output.
 
At least on Python 3, it prints without the escape. I'm not sure if that depends on the Python version or the terminal or the terminal encoding.
 
DNC
Hmm let me try saving in xml file and see if any difference
 
cbg
ha?
of course it prints like that in Python 2,
it is wrapped in a listcomp
that's repr
@DNC you're not getting u'de Re\xfcnie 23:00'
@DNC you're getting [u'de Re\xfcnie 23:00']
different thing.
 
DNC
Yes, but how do I get it like the original: de Reünie 23:00
 
7:19 PM
@DNC you're printing a list of one string, because you wrapped your one string in a list.
 
@DNC do you know what the [ and ] symbols mean in your output?
 
don't wrap it into the list
 
DNC
array right?
 
and please read the official Python tutorial.
 
@DNC They're called lists in Python. So you need to index into the list. If you're not sure how to do that, then as @Antti says you should read the Python Tutorial before going any further.
 
7:21 PM
These are handled in chapter 3. "An informal introduction to Python"
 
DNC
guys relax, everything works fine. The only thing I don't understand is why I can't get the "ü" (u with dots on top). This has nothing to do with lists right?
 
You do have the ü. It's being represented differently than you expect because you're trying to print a list.
We're not just messing with you here; advising you to read the tutorial so that you actually understand what's going on is the best advice you could get.
 
You're confusing the internal representation with the actual data.
@DNC try print u'de Re\xfcnie 23:00', it will show the unicode character
 
@davidism Hey - it's been a little while but if you remember talking about this earlier - I found away to do what I was trying to accomplish:
for each in rl:
    with open('{}.pkl'.format(each), 'rb') as f:
        globals()[each] = pickle.load(f)
 
no
There's a reason we were telling you to use a dict.
Do not mess with globals.
 
DNC
7:32 PM
@davidism I got it, thank you!
 
What's the scoop?
 
4
Q: How can I create lists from a list of strings?

user1962851I have a list of strings such as: names = ['apple','orange','banana'] And I would like to create a list for each element in the list, that would be named exactly as the string: apple = [] orange = [] banana = [] How can I do that in Python?

@JakeStokes if you insert 5 variables into globals, how does the rest of the code refer to them? What if you only insert 4? What if you insert 6?
The point is, you write the code ahead of time, so you can't refer to things that don't exist. This is why you populate a dict and index into it, it has methods for looping over all keys and values.
 
I've messed around a lot with dictionaries already, I understand how to use the methods to retrieve the keys and values etc.

What I'm using this for is when I start up a python session, to load in the class instances I have saved, and assign them to variables with the same name as the names of the pickled files. These are very distinct names.
I'm still a little ignorant of the significance of globals(), so I'll do some reading so that I can understand the point you are making a little more clearly.
Maybe I'll put it on Github so you can come laugh at me when I'm done
 
@JakeStokes don't quite get why a dict isn't better than that
 
7:48 PM
It might be, I'm new to all of this so I'm just trying to learn.
The items in the list I am unpickling are the same as pickled files names of class instances.
When I do it this way, I can do something like ClassInstance.Method
With a dictionary I need to do Dictionary['ClassInstance'].Method
It just seemed easier to use from that perspective. Always open to scrutiny, trying my best.
Seems I have a LOT to learn yet.
 
You keep on saying you have a lot to learn but then you ignore people who are trying to help/teach you :P
 
8:12 PM
I haven't ignored them, I've actually implemented in practice what they've told me to do, and tried various other things. I've also read the thread I was linked, and intend to do more!
 
I still think loading pickles is a bit of an anti pattern.
 
@JakeStokes we've got this canonical: stackoverflow.com/a/1373185/918959
 
@JakeStokes for a tiny bit of extra typing you get a lot of benefits
 
8:50 PM
!!! I just logged in to my Battle.Net account after a long time, and there is a download for Lost Vikings in my account! SO EXCITED!!
 
is that the one with the three vikings, one has a shield, one shoots arrows and one runs?
 
yup. this:

https://upload.wikimedia.org/wikipedia/en/6/61/TheLostVikings.png
 
Had that on the SNES :)
 
Only on Windows it seems. Will be installing this when I get back home tonight.
 
I'm going to coin a buzzphrase and sell consulting and certifications: Enterprise Agility. Who wants in?
 
9:02 PM
do I get a special for being member 1?
In
 
I did that earlier today in my backyard...it was incredible
then I got elbow dropped by my son
 
he obviously loves his dad :)
 
9:19 PM
The puppy posts kittens now?
Weird world...
 
This puppy is a lover, not a hater
throws scooby snack
 
:D
And what about love for wolf cubs? Here are some:
 
 
1 hour later…
10:45 PM
and the room fell silent...
no love for wolf cubs... :(
 
my daughter thinks they're funny
 
My daughter keeps wanting to see the cats that were posted
 
11:15 PM
@idjaw my daughter: squeal of delight and points at monitor "Kitties in sock daddy!"
 
00:00 - 15:0015:00 - 00:00

« first day (2114 days earlier)      last day (2828 days later) »