« first day (2227 days earlier)      last day (2945 days later) » 

20:02
@idjaw you did
@Andras Hello there.
cabbage
How long you long do you boil macaroni?
whatever is written on the package
20:06
gah...beat me to it @BhargavRao
I usually eat spaghetti, that boils for 8 minutes
Already threw it away :D
20:29
hi
cabbage
user6568562
20:57
They did the enhance thing on Jason Bourne, twenty minutes in
user6568562
+ CIA's filesystem is organized like my music directory
user6568562
And, apparently, you can send black ops files straight to USB drive through right click menu
I have a set like this {'A','D'}, how do I get all possible combinations?
Such ('A','D'),('D','A')
@BlueMonday define "all possible combinations", and look at itertools.combinations
I tried like this
>>> set(itertools.combinations(names, 2))
{('A', 'D')}
20:59
128
Q: How to get all possible combinations of a list’s elements?

BenI have a list with 15 numbers in, and I need to write some code that produces all 32,768 combinations of those numbers. I've found some code (by Googling) that apparently does what I'm looking for, but I found the code fairly opaque and am wary of using it. Plus I have a feeling there must be a...

or itertools.permutations, more likely
start with the documentation of itertools
Alright, thanks
@BlueMonday check your terminology from wikipedia :D:D
:D
>>> set(itertools.permutations(names,2))
{('D', 'A'), ('A', 'D')}
Yeah this is what I am looking for :)
r-combinations are really r-item subsets
r-permutations are ordered r-combinations
21:03
@BlueMonday what you are looking for is the documentation
Yeah yeah :)
It's okay, I did it :)
did what?
What I needed xD
No, it's not OK. RTFM.
What do you mean
it's a good habit to start getting into
I couldn't find answer for this,
s <= t
But how to test test whether every element in s is not in t?
exactly like that:P
Hmm yeah, but I want it to return True instead of False
21:13
negate it...
What do you mean?
I mean turn True to False by negating it
"python boolean negation" via google or something, I won't read it for you
hmm
not..
xD
I'm not riding your ass just to be mean. If you don't habitually search for your issues and try to understand the tools you're using, you'll sooner or later become a cargo cult programmer.
Yeah, I understand :)
user6568562
21:17
The CIA's tech billionaire patsy does a terrific impression of Zuckerberg's speech mannerisms. It's crazy : D
hope it's not that Eisenberger or whatshisface
Jesse Eisenberg
no, it can't be, he can't act
user6568562
:D Come on, Eisenberg's alright a quarter of the time. No, he looks middle eastern actually. But it's obvious he "researched" his role through binging Zuckerberg's talks and interviews
@AndrasDeak no, that was some asian guy
eisenberg is horrible
@randomhopeful the quarter when he's playing himself
there is almost no movie that he cannot ruin
21:21
the one thing we agree on with Antti:D
the only? :D
well, 1/3?
I don't actually keep count:P
what are the others: python 3 suck?
user6568562
@AndrasDeak :D
hungary's got the best government
user6568562
21:22
@AnttiHaapala You didn't like him as Lex Luthor ?
no
lex luthor should be more intimidating. I just wanted to punch him.
"You didn't like him as---" "No."
user6568562
But he's an arrogant prick, like a 70s' Woody Allen on steroid weaning. I'll give you that
he can't act.
well, at least his performances are as consistent as those of Steven Seagal, you know what to expect
21:24
yeah, but steven seagal is... steven seagal.
but eisenberg supposedly plays some roles with depth
user6568562
I saw a movie where he cut his hair. It felt weird
the first comment
"because I can only see Eisenberg in the trailers. not Lex Luthor"
user6568562
I thought the Batman Superman battle was pretty alright. And surprisingly I digged Ben Affleck as Bruce/Batman
he also always has the same annoying voice actor in Hungarian, it's awful
user6568562
21:26
But man, the CGI was cheesy
You can't make a blockbuster without cheesy CGI, dude. Get up to date.
@AndrasDeak you dub? .d
poor you
Always :(
user6568562
@AndrasDeak I know, I know
21:27
you see, my people supposedly 1. don't speak languages and 2. can't read
@AndrasDeak watched some dubbed x-files ~20 years ago in Russia... that was surreal...
we were going to watch Secret Life of Pets in a cinema, but couldn't, since there weren't any subbed screenings in the whole country
user6568562
Anyone familiar with that weird german voice over thing ?
@AnttiHaapala Duchovny in X Files has a pretty nice voice actor, but that's one of the exceptions
Do I need to do anything special to submit my votes for mod or am I all set just clicking first second and third?
21:28
nowadays, the translations are crappy and the voice work is even crappier
user6568562
I think Russians do it, as well
quite a many Finns learn to read themselves, before goingto elementary school
@anshanno I believe you just click
if the nominees show up on the right, it should be fine, at least that's what I did
@AndrasDeak it didn't have more than 2 readers
what doesn't?
oooh, you mean the Soviet Dubs
21:29
the russian dub
Yeah, that's the usual. One dude voicing the entire Star Wars movie, like some old pr0n movie
it was like "I AM GONNA KILL Yпервый из серии произведений, рассказывающих"
user6568562
@AnttiHaapala That's the one : D
user6568562
So weird, man
"<low man voice> I love you, Han..."
user6568562
21:30
Same forty year old guy voice over children's singsonging
user6568562
So creepy
stop dubtchering!
I severly dislike recent dubs, and watch everything in original
in Finland whatever is dubbed is dubbed well too...
tv series are the worst, there are like the same 5 actors voicing everything
user6568562
21:31
@AndrasDeak I agree
and of course children: there's 1 boy and 1 girl actor who voices children between 3 and 16
(might be exaggerating, but you get my point)
what is dubbed is children's series
user6568562
Yeah, I experienced that in French versions of foreign media
if you're not allowed to watch it under 8 years old, then it's not going to be dubbed
Nordic countries are famous for their progressive use of subtitles and foreign-language shows, so...
user6568562
21:33
French are actually alright, although they can't do dramatic whispering
8-year-olds can read subtitles fast enough
haha we're shifting toward a state where a lot of students with fresh A-levels are functional analphabets
fun stuff
but also, they don't have dubs in Vietnam either...
for English language content
Yo, is this good constructed question worth to look at pastebin.com/qua5xUYW ? :) @Andras
wat
I see no question
21:38
that ^
so that's a "no"
First line..
I searched for a question mark, nothing came up
that by definition means that you don't have a "good constructed question"
user6568562
Eck, I can't find an excerpt of Pirates of the Caribbean dubbed in Arabic.
user6568562
Jack Sparrow's voice is really something
@randomhopeful I guess it is good :D
user6568562
21:40
They got this low tenor voice, and it's truly hilarious
I hope he doesn't voice Vin Diesel too
user6568562
Haha, he should've :D
remove the "not"?
Then I get False, and True
I mean
21:42
@BlueMonday you've got a set of tuples
oh, you have two cases
you can sort your check set to get an (ordered) tuple
tuple(sorted(check))
I tried that
then you check if this is in the other set
21:42
works
But do I sort the other set aswell?
that's about the most contrived way to do that... besides calling php
>>> nam = {tuple(sorted(y)) for y in (itertools.permutations(check, 2))}
>>> nam
{('A', 'B'), ('B', 'D'), ('A', 'D')}
>>>
This is what I got, should I sort out the other set aswell?
Because these are not all the combinations
DSM
DSM
Temporary cabbage.
tmpcbg DSM, saw your dummy edit;)
21:44
>>> foo = {('B', 'C'), ('C', 'D'), ('A', 'B'), ('A', 'C')}
>>> tuple(sorted({'A', 'C'})) in foo
True
>>> tuple(sorted({'A', 'D'})) not in foo
True
>>> tuple(sorted({'A', 'C'})) not in foo
this?
Hmm
I'll try now.
DSM
DSM
@AndrasDeak: yeah, saw a "+14" in my rep, and was like "that's odd.. wonder why that is?" and then tracked down why.. :-/
@BlueMonday hmmm
@DSM inexplicable downvote?
@BlueMonday nvm, too sleepy
21:46
:)
DSM
DSM
@AndrasDeak: yep. Well, there's a reason why I had to ask Kevin to write me a userscript to hide the protect button!
haha, I see:)
you should ask him to add an unlock feature for voting:P
and later, for any interaction on main:D
DSM
DSM
Yeah, like if I want to downvote I have to make up a haiku.
or solve a Rubik's cube in 10 seconds
If I sort them out I get False for both :)
DSM
DSM
21:48
Isn't your assignment done yet?
@BlueMonday {tup for tup in set(itertools.permutations(check, 2))}
@DSM one more line;)
that's a very awkward way to write set(set(itertools.permutations(check, 2)))
I know that, that's lisp
DSM
DSM
21:49
What is the additional set doing?
@DSM don't ask me
is it set in stone?
DSM
DSM
Well, maybe he did set = something_else beforehand..
{tup1 for tup1 in foo}
this too, how about set(foo)
@AndrasDeak where?
how can the inner call succeed? :D
nowhere
DSM
DSM
21:51
Hey, wait. Didn't someone else ask this question on main earlier this afternoon? Are there multiple people in this class asking the same Q?
@DSM wouldn't be surprised
{tup1 for tup1 in foo} equals set(foo)? @Antti
I wasn't near main today
Well, it wasn't me, I am not asking for homeworks on main..
@DSM who goes to main nowadays
21:52
@BlueMonday I don't think DSM was implying that
yesterday, by Peter Varo
well, I don't know, if I'm getting lazy or old or whatever, but for me at least it seems like, that most of the new questions appearing on SO (for quite a while now actually) should be immediately closed, without any further questions! they are duplicates. irrelevants, or simply stupid ones.. if the OP would open the documentation or a book s/he would know, that what s/he is asking is just pure nonsense and even the question itself does not make any sense..
DSM
DSM
I wasn't not implying it..
peter had a breakdown already
Yeah, all ok :)
DSM
DSM
21:53
Both have been seen before, everyone in a class asking the same one, or one guy making up multiple people.
Hmm, there was a guy asking for the whole homework, not quite sure his name.
@BlueMonday you used set() there already, perhaps you should ensure that you're not a cargo-cult programmer.
DSM
DSM
@AnttiHaapala: I'm not there yet, but I do answer a heck of a lot fewer questions than I used to. Part of it's just that the niches I used to inhabit now have a lot of kids who can answer stuff, and so I tend to only step in when they've gone off the rails.
@DSM oh, I misunderstood your implications then, sorry
If I may ask, what is cargo-cult programmer? :)
21:55
@BlueMonday DUDE
Alright googling now :D
40 mins ago, by Andras Deak
I'm not riding your ass just to be mean. If you don't habitually search for your issues and try to understand the tools you're using, you'll sooner or later become a cargo cult programmer.
I got it, sorry :D
you should've googled 40 minutes ago
DSM
DSM
@AndrasDeak: to be fair, I think idjaw only learned it the other year.
21:56
but now is better than never
Oh lol.
@DSM I guess your being Canadian makes me assume that you're too nice:P
I blame @idjaw
no no, I blame Canada!
user6568562
Eyyy, nice :D
user6568562
Ok, everybody. See you later. Good night !
do 20-year-old pop culture references still count as pop culture?
21:58
Take care
@randomhopeful rhubarb
Cabbage !
@AndrasDeak up until 60 years
22:01
after that most of those among whom it was popular, have died already.
So in ~40 years, the South Park movie will be a classic?
Can hardly wait:D
they will write essays and theses and dissertations in colleges of humanities
hey, as long as it's not Jersey Shore...
22:04
I've been summoned
what did I learn when?
I learned something?
inform me of this education I seeked
so I can use this knowledge I gained
@AndrasDeak jersey shore will be studied in anthropology
social anthropology
south park already covered what had to be covered about jersey shore
Class 8: The Decline of Homo Sapiens [*snicker*, he said homo]
@DSM What did I learn?
show him the way (again)!
DSM
DSM
22:07
@idjaw: oh, I think I was mentioning that (I think) PM2R and I were talking to you when the origins of the phrase "cargo cult" came up a while back.
Oh I completely (for a change) misunderstood you
Alright, I'm off to sleep, take care y'all.
I thought somehow you meant that idjaw only learned to understand your implications the other year
DSM
DSM
Hope your Monday is, er, blue.
@DSM oh ok. Yeah....it was a new term for me. I learned it here
22:09
@BlueMonday good night
@idjaw me too, but almost at once after starting to frequent here:)
But fortunately I don't have to know about cargo cult programming in order to do it, right?
(I'm mostly joking, the only bit of cargo-culting I did was when I wrote my android app in javandroid)
I hate not knowing what I'm doing
DSM
DSM
Time to go brave the snow. Winter rhubarb for all!
good luck, rhubarb
snow in your area @DSM?
really? wow
surprised
DSM
DSM
@idjaw: yeah, the first so far. Soon I'll be back in AB where they actually have winter. :-P
good luck with that! :P
still waiting for our first snowfall here
just took out all the winter gear from the basement in preparation
DSM
DSM
22:20
@thefourtheye: hey, look who made it onto the CTC! :-)
6
hehe...wow...look what I stumbled on
DSM
DSM
That reminds me, before I go -- I've been watching some movies in Hindi recently and speakers will not just drop English words, but say entire sentences in English. Is that common in real life too, or is it an affectation in film?
@idjaw just cv: tb.
user559633
22:40
overwatch is so good
23:18
@DSM I stand corrected. It is currently snowing
here it's 12 degrees Celsius midday, warm front:/
@DSM from overhearing friends and colleagues conversing in their own languages, it seems somewhat common. I guess some things are more easily expressed in English. My boss is Indian, I'll ask him...
23:39
I always feel like a pretentious snob when I feel that something is more easily/closely expressed in English. I usually resist the urge to use English, unless I'm talking to a fellow pretentious snob.

« first day (2227 days earlier)      last day (2945 days later) »