« first day (2251 days earlier)      last day (2922 days later) » 

16:00
that's about it
other than that I really don't care
Vietnam between the south, the middle and the north
My patriotism comes out when I ironically employ my Murica Hell Yeah sunglasses emoticon B-)
Hockey dominance is very important to me as a Canadian. It's what I look for in a political leader. Ensuring we have the right funds funnelled in to our hockey camps.
and most peep, they don't get at each other if you are coming from one of the extreme
I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are -- Mewtwo
16:01
^^ real chuckles
where is this from??
I'll reveal my power level by disclosing that I know it's from Yugioh
The subtitles are almost certainly not real.
LMAO @Kevin
You can't put a number on fighting spirit.
DSM
DSM
? Yes, you can. 9000+.
Ok, you can put a number on fighting spirit, but it quickly becomes impractical to do so outside of a time window of about one and a half story arcs.
I may or may not have made over 9000 an error message recently in a recent PR
Scouters exploding when your enemy's power level is too high is a design problem on par with the computer consoles on the bridge of the Enterprise that throw off sparks during combat maneuvers.
A simple OverflowError: fighting spirit should not exceed 2147483647 would do just fine, thanks
16:10
Maybe those aren't being damaged, they're just using a very noticeable visual feedback mechanism
If you can't handle a little glass shrapnel exploding an inch from your eye, you shouldn't be in Frieza's elite corps anyway.
nods
Clearly you slept through the eye-toughening exercises in space boot camp.
that's definitely a few demerits right there
@Kevin but I'm an American, I have no need for such a silly language.
16:17
True enough, fellow American. Surely the rest of the world will soon see the error of their ways and adopt the One True Language B-)
@KevinMGranger ack
specifically only Chinese, that language is too much effort to be worth it. Most other languages aren't bad
didn't fail my exam, I am vary happy
@corvid there is not a language called Chinese.
16:25
Both Mandarin and Cantonese
@khajvah \o/ which exam was it?
you forgot about 300 million people who speak Chinese but speak neither Mandarin nor Cantonese.
@AnttiHaapala you're not in Europe?
that's about as much people as there are muricans
16:27
@AnttiHaapala but nobody is as great as muricans
right?
Once again, the advent wording is ambiguous. Exactly three/five vs at least three/five.
@KevinMGranger I am in Europe. I just acked that this is mostly an European+(Europeans emigrated to the Americas) room.
@davidism well, I did both :D
like ... three times
Yeah, I did the first interpretation, then it turned out it was the second one.
@KevinMGranger I am from Armenia, which geographically speaking, isn't in Europe.
16:29
@khajvah what's PDE
rb folks
@idjaw partial differential equations
it was my hardest exam
@davidism why does it matter?
@AndrasDeak '3333' isn't a valid group of 3 in the first interpretation
if you only accept the first occurence, shouldn't the two be equivalent?
@davidism aaah, like that
sorry, I see
16:31
But all the examples use exact numbers, and the wording doesn't clarify it.
I guess the example input helps with that, but I see why that is small comfort
Not a big deal compared to some of the other puzzles. This one at least gives the wrong answer and is easy to fix.
16:45
Guys small question: dpaste.de/bZpQ
Explained in the paste
@Emre what's the question?
I'm assuming your question is "why does this code give me a syntax error?". It's because you can't have an assignment statement inside an if condition.
number = 0
a = [(0,2,3), (0,2,4) (0,2,3)]
if tuple = same:
number += 1
#wanted output:
number = 1
No that's not my question Kevin
if tuple = same: should be if tuple == same:. There, now it should parse.
@Emre Based on the code you showed, what Kevin pointed out is your problem
if there is something else beyond that, please actually ask the question
DSM
DSM
16:47
Well, it's a problem..
If you wanted me to answer a specific question, you should have asked a specific question ;-)
if tuple = same: < this isn't pythonic
How should I change to work accordingly
It's not pythonic in the sense that it's not Python.
Exactly
@Emre That has nothing to do with "pythonic". That is syntactically incorrect and that is exactly what Kevin was explaining to you
16:48
Okay lemme rephrase it better:


number = 0
a = [(0,2,3), (0,2,4) (0,2,3)]
if tuple = same: #< How would I make this if statement to get the output below
number += 1
#wanted output:
number = 1
Does this make more sense?
2 mins ago, by Kevin
if tuple = same: should be if tuple == same:. There, now it should parse.
Ok, ok, enough playing around. One way of detecting whether a collection contains duplicates is to compare its size with the size of a set containing those same items: if len(a) != len(set(a)): print("duplicate found"). However, this only works if all the items in the collection are hashable.
Which they are here, so everything's gravy
Oh, there's a second syntax error I missed. a = [(0,2,3), (0,2,4) (0,2,3)] should be a = [(0,2,3), (0,2,4), (0,2,3)] .
you guys xD
I'm still not actually sure if that was your question because you never said "how do I determine if my collection contains duplicates?" For all I know, your question could be "how do I tell if my collection contains only tuples whose second element is 2?"
DSM
DSM
Or whether the first element is ever duplicated.
16:53
Or "how do I tell if my collection only contains tuples that only contain integers?"
Lemme rephrase it 1 more time
They're certainly all the same... Type.
DSM
DSM
The product of each element is always the same.
How do I tell if my tuples contain duplicates?
Kevin
None of your tuples contain duplicates. Your list contains duplicate tuples though, which Kevin already described.
16:54
So if any element in any of your tuples is also in any of your other tuples? That's a harder one.
No
I mean like
so a = [(0,1), (1,2)] has tuples that contain a duplicate: the 1.
if len((obj.bar, obj.foo)) != len(set((obj.bar, obj.foo))):
obj.baz += 1
DSM
DSM
I'm having flashbacks to earlier confusing conversations..
@Emre please formulate your question as a mcve. Your descriptions are not clarifying what you want.
16:56
Communicating project requirements is one of the more difficult parts of program design, I feel.
for objects in dictionary:
if ((objects.bar, objects.foo)) == ((objects.bar, objects.foo)): #(10 same objects)
objects.baz += 1

print(objects.baz)
#wanted output:
10
DSM
DSM
@Kevin: last night I noticed that one of our clients added a test case which incorporates some functionality no one had ever discussed before. It did not make me happy.
Just hearing that second hand doesn't make me happy.
@DSM How do you expose clients to adding test cases?
how are these test cases written?
curious
DSM
DSM
@idjaw: in this case, in Python. :-) One of our [numbery types] is fluent.
17:00
@DSM Neat. So, the test cases are just written as code that should pass?
Thats the updated 1
How would I compare the objects like that?
def test_the_numbers_do_good_things(self):
    self.assertEqual(42, the_method_of_numbers(mocked_data))
@DSM kinda like that?
DSM
DSM
@idjaw: yeah, but we're a py.test house, so it's just assert x == y.
@DSM do you guys dabble with any gherkin?
@Emre Your conditional works just fine as it is, for me.
>>> class Thing:
...     def __init__(self):
...             self.bar = 23
...             self.foo = 42
...
>>> dictionary = {Thing(): i for i in range(10)}
>>> baz = 0
>>> for objects in dictionary:
...     if ((objects.bar, objects.foo)) == ((objects.bar, objects.foo)):
...             baz += 1
...
>>> print(baz)
10
DSM
DSM
17:03
@Kevin: although that's really just counting the number of objects in dictionary, barring nans..
@idjaw: my immediate supervisor has, I haven't.
Yeah but if Emre wants to do baz = len(dictionary) in a slightly roundabout way, who am I to judge?
That's now how to do it @Kevin
As DSM said that just counting the number of objects
There needs to be a comparison
is there any generator like xrange in python that its endless?
But you guys are not taking it serious
so nvm
like xrange(0, inf)?
17:05
There is a comparison. Right there on line 9.
@AndrasDeak thx
or the 5-line example there which it's equivalent to
If you want to say "that algorithm won't produce what I want", then you need to provide sample input and sample output that demonstrates this. I want something like "but If I do dictionary = <you enter something here>, I expect to get 100, but your thing says 15". Just saying "that doesn't work" is not enough information for me to refine my design
garlic
17:09
cbg
Happy little clouds... calm, deep, pools... breathe in, 1, 2, 3, breathe out, 1, 2, 3...
DSM
DSM
"Calm blue ocean", I think is the phrase.
Cerulean Blue
yeah...that had to happen.
that was getting ridiculous
17:10
garlic
Just watch out for any moving vans with the same name.
I like the percussive quality of the P's, though.
DSM
DSM
I get don't get that reference.
@DSM X-Files episode where the guy can influence people by talking to them.
He talks about cerulean blue and a calm breeze, and the cops can't see the moving van going through the intersection.
I think that's probably my favorite episode.
Ronin?
ninro
17:14
Pusher
DSM
DSM
Oh, yeah, I remember that one. And it had the sequel with his [redacted] or whatever.
My favorite episode is the guy that's supernaturally lucky and tries to win a poker game against some thugs and he wins so many hands they think he's cheating and they throw him off the top of a building but he lands in a soft dumpster.
Mulder spots the word "ronin" written at the crime scene, and tracks down Modell's classified ad in a mercenary magazine.
\o/
 
1 hour later…
18:18
*crickets chirp*
chirp
did I just call myself a cricket?
Yes..I think so
is it really?
I've never seen this before
and hi @WayneWerner! :)
18:20
selling global food shortage as a feature, good one
@MarcusS well as long as you're not using Vim, I think it's fine ;)
I'm certain I've seen it linked in here, long ago
Cricket cabbage, @idjaw :)
Yes, I actually tried them, they're fantastic!
adding them to the list of things to try
Jun 16 at 15:48, by Wayne Werner
@Kevin Have you tried Chirps?
18:22
anyone hear of this?
@WayneWerner Luckily I was only using PyCharm :P
Wayne Warner confirmed as undisclosed paid spokesperson for Chirps
wim
wim
@AnttiHaapala yes, my input did
I think I'm going to try some of those with my son
wim
wim
I had the same bug as you, initially, otherwise I probably wouldn't have noticed it!
18:22
did I just catalyse discussion here?
@AndrasDeak Yes. Yes you did.
You can give yourself a gold star
one less item on the bucket list
I usually do the opposite:D
Some day I will learn how to start a conversation instead of just riffing on existing material
So, guys, what's your favorite... Weather
@Kevin Good thing I'm Werner
balsamic vinegar, hm hm hm hm hm
18:24
I don't know who that guy is
@WayneWerner A charlatan trying to slander your good name, it seems
@Kevin I'm not a fan of Spring, they always try to walk it in.
The cheddar actually weren't as good as I thought they'd be
I have no idea why but that just made me wonder if it's legal to change your middle name to Comma
an actual comma, or Comma?
18:25
Comma
If the DMV hands out custom license plates with the letters NO PLATE, then it stands to reason that you should be able to change your name to similarly tricky values.
I'm sure Comma is. I thought I had already seen one, but I googled until my patience ran out with no success
I'm getting a car soon and I need to decide on a vanity plate. LAYER 4 is already taken, as is LOONIX. Stop me from going with a video game reference?
KEVIN
oh wait...it has to be six?
WHAT
Oh, you're not yelling at me
18:32
no. I thought it was 5, so I was trying to get you to use your name
That has to be taken... right?
one way to find out
I don't remember the limit
KEVINM
it's like eminem, only keviner
IKEVIN
18:32
You're just trying to make it even easier to steal my identity.
I saw someone with "EATRIBS"
You shouldn't put a name on a custom license plate unless it's the car's name.
KEVIN is taken. I can't name my car Kevin too. There's already way too much Kevin in my life. And now I'm hitting semantic satiation with Kevin. Kevin Kevin Kevin.
Not a simple feat, as determining a car's name requires defeating a difficulty roll of 25 against your Commune With Machines skill.
MYCAR
18:36
HIIMACAR
I don't get the luxury of getting custom plates here. So this is very fun for me.
DSM
DSM
@idjaw: Vraiment?
@DSM I forgot about that!!!
😃 😃 :D
oh man, next car purchase is going to be amazing
BEEP FACE will live
But will they allow diacriticals?
or McBeep
DSM
DSM
18:44
Bonne chance, SAAQ..
phoque
so much fun to be had
Please don't do weird things. — Maroun Maroun 24 secs ago
Precisely what I was thinking, reading that question.
I want to tell OP "you can't reassign a name inside an expression" but I don't want the Well Actually brigade to start talking about globals().update
DSM
DSM
Just walk away. Nothing good comes from dealing with such questions.
It's actually a fairly well-formed post, disregarding the unpythonicness that permeates.
18:51
I don't understand why anyone would want to do this unless they were codegolfing or something
exactly that
OP has 200 score on PPCG
@AndrasDeak Yeah, this was originally a code golfing attempt :) — Rudolf L. Jelínek 38 secs ago
globals().update({"a": a-1}) or a decrements a and evaluates to the new value, while simultaneously tainting your soul
DSM
DSM
Already this question is stealing seconds of lifespan. I knew it was a bad idea.
Fly, you fools
If it's any comfort, I wouldn't have used my time wisely even without this question.
wim
wim
19:02
Are questions about github on topic at SO ?
It's a programmer's tool, isn't it?
Counts as a programmer tool if you ask me
@Kevin haha the "Well Actually brigade", I love it
I'm throwing stones from within my glass house because I love correcting strangers on the Internet, but I do try to be tactful about it
@wim the github tag has a big number attached to it, so I think so? If PyCharm is a valid tag, then why not.
19:04
Employing the open-faced criticism sandwich of "I agree that X. However, Y"
Also. Why does search sometimes result in properly associating with the tag, and other times no?
Well actually it's more of a squad than a brigade
With an optional "... But your viewpoint is understandable considering that OP never fully described Z in their question"
Machiavelli would be proud
@wim I wouldn't be surprised if there was a corresponding meta post
Fortunately, all of the auto-increment "solutions" are so BDFLforsaken that it takes up way more characters than just doing it right. Then again, you can't put that in a lambda for onelining
@wim there's this one by Tiny Giant asking if github issues are on-topic, and there's a strong "yes" as answer
19:10
cbg'
lettuce?
lettuce continue
cbg
19:19
Is there a variety of code golf that is more about "good code" than "short code"? I like to find shorter/faster/better ways of accomplishing things but golfing seems to have evolved into something resembling a compression algorithm competition
FWIW, that is code golf
doing everything as short as possible
there are performance challenges on PPCG
user6568562
Yowz !
cbg, long time no see
how's it going?
user6568562
Andras [ :
user6568562
It's going nice and steady, I had to take care of some business
19:21
I can't help but feel like it started out as an olympic race and then people started building cars that fit in the running lanes
@JosephLeClerc I think this is the closest
Entire languages devoted to it
user6568562
@Andras How're things on your side ?
@JosephLeClerc yes, but people still compete, even though it's hard to beat Pyth and impossible to beat CJam
or is it Jelly?
whatever Dennis uses to beat everyone when it's not Martin doing the same thing:P
@randomhopeful fine, thanks:)
Code golf is like a professional sport where performance enhancing drugs are not only not banned, but in fact encouraged.
7
19:23
yeah, that's a good way of putting it
@AndrasDeak thanks, yeah this type is pretty good. Basically C programmers get the good golfing experience haha
some of those languages were seemingly written on performance enhancing drugs
Is there a variety of code golf that is more about "good code" than "short code"?
Yeah, it's called normal python
19:24
You can invent a game wherein you try to come up with code that is invariant to the codereview.SE transform
you'd be surprised at the knots that some people are capable of tying in Python
if you post it and it doesn't change, you get high score
@AndrasDeak That I would like to see
Start submitting answers to code golf using the language "Strict Python", which is just Python except it raises a SyntaxError if it doesn't follow PEP 08 standards
Would be fun to have a blind code-voting contest of sorts
user6568562
19:26
@Kevin That sounds like straight fun
Does that exist yet? Let's make it. Like Vigil but slightly more practical.
Comments would completely disappear
Score code golf submissions using the metric: number of characters, divided by the amount of time it takes for the judge to figure out what the code is doing without reading any comments.
But the comments are my code! It's run entirely through doctest.
I used flake8 for a while: flake8.pycqa.org/en/latest
19:28
There is no place for you in the New Code Golf Empire.
"./tmp.py:10:80: E501 line too long (85 > 79 characters)" It's like, 'uh, I'm....sorry?'
too bad?
I had hundreds of these
line length is the one style standard I completely disregard.
flake8 doesn't run it though, right?
strict_python() {
    flake8 "$1" && python "$1"
}
nope
while True:
    pass
flake8 ~/tmp.py
Finished in no time
I'm saying that's the issue. flake8 can't be called "strict python" on its own.
19:34
I mean I can somewhat understand a line length limit. But 79 characters? Are people writing python on VT100's?
I think the modern justification is "lots of users like to have multiple windows side-by-side", which is true-ish.
"Early VDU's": 24 lines (or possibly 25 - sometimes a special status line) of 80 characters of text (sometimes with two character width settings).
DSM
DSM
I agree.
Aug 24 at 18:12, by DSM
We use flake8, but E501 can go hang.
print(bool("lots of users like to have multiple windows side-by-side"))
True
It checks out.
@DSM agreed
19:37
Oh my god. Million dollar idea. Vive 2 comes out, make a multi-monitor app with virtual monitors. It'll be like that scene in the Matrix where Neo meets the Architect.
They already have a "virtual movie theater"
Something something that's a nonexisting character
or is it a Neo from another movie?
you're missing another something
"You can have monitors as big as you want!" is a promise that VR rigs have been making for a long time, but the problem isn't size, it's resolution.
and are "as big as you want" monitors really comprehensible?
You'll get your 800 character wide monitor, yes, but each character will be half a pixel wide
19:38
"as big as I want" is perfectly reasonably sized
ergo concordantly vis a vis
Well that's why I said Vive 2. Definitely will have better pixel density than Vive 1
@MarcusS exceedingly efficient
I'm not holding my breath, but I'll happily capitulate if/when I get proven wrong
@idjaw quite apropos
19:40
It's like....960x1080 or so per eye right now? Could probably cram that to 4K
i want a portable espresso machine
You'd need a pretty beefy card to do 2x4k at 90+fps, wouldn't you?
the future is full of beefy cards
Yeah you'd melt some ice caps probably
I wish it was like in Hogwarts, I could just spawn a nice steak and wine
19:42
You're a beefy card
right on my bed
@MarcusS cataclysmic system crash killing everyone connected to the matrix room6
I haven't followed hardware in a while -- is the GTX Titan still overkill or whatever?
Or is there something new now
@MarcusS IMHO yes, I think the titan is insanely OP
Nah, ice caps will already be melted by then. Instead, we'll be evaporating the encroaching floodwater, thus solving the problem.
19:42
I have my eyes set on the 1060
Well actually the fury X is really cheap right now, does fine with the Vive
however, apparently the 1070 is the real sweet spot between performance and price
however...I'm still sold on the 1060
user6568562
I played Battlefield 1 for a little bit, f*cking thing is damn amazing
I got mine for about $350, has annihilated everything I've thrown at it
I remember back in the day when I splurged on a GTX 295 when it was the top card, and everyone told me it was majorly OP, but I had so much fun with it
Now it feels ancient
19:44
@randomhopeful It is so real
@MarcusS that is a good thing
argh I've been running in circles for half an hour, confounded by our code
user6568562
@khajvah Amazing ! The lifetime when you get killed is so powerful
turns out that what I thought were complex Clebsch--Gordan coefficients were in fact real... grrrrr
head, meet wall
@randomhopeful have you played the online?
it is massive, real, intense and beautiful
It feels like there are 200 players on a single map
user6568562
19:46
@khajvah Nah I didn't get to, but I can imagine
user6568562
I tried GTA and CoD online, I've never experienced such a thing before
believe me, this is better
it feels like a real war, not like I experienced any
user6568562
Oh, I can believe you
user6568562
It's crazy, man, creativity and storytelling got a serious boost in video games
yeah
19:51
I can't do online with random people anymore
I just don't have the patience or tolerance for it anymore
there's only one random person here
and that is as much as we will allow
I don't do teamwork tho. I just randomly run around and die
user6568562
@AndrasDeak You know there's only one :D
user6568562
@idjaw You mean the trolling ?
19:54
@randomhopeful yeah....mostly that
user6568562
@idjaw I can understand : /
the MO in MMOs is the worst
@randomhopeful they don't usually troll in FPSs
Modus Operandi? Yeah, those kill 10 ___s quests never entertain me.
:|
Maybe it's just me, but I'm not looking forward to winter bash

« first day (2251 days earlier)      last day (2922 days later) »