« first day (3522 days earlier)      last day (1418 days later) » 

2:26 AM
Have you ever seen an answer posted not long after you posted one, and are sure that the other answerer only copied your work, maybe changed a variable name here and there?
 
Flag for mod?
 
 
4 hours later…
6:10 AM
Apr 21 at 10:13, by PM 2Ring
152
Q: What to do when plagiarism is discovered

PekkaHow should I act if I discover a user plagiarizing fellow users' posts? What if I find someone plagiarizing external resources without attribution? See also: Users are calling me a plagiarist. What do I do? Return to FAQ index

@AbdurRehmanKhan You don't get two dictionaries in the list, you just get two references to a single dictionary, the dictionary that's named x inside gen.
 
6:28 AM
@kauray That won't find the 222 in [[3,4], [2], [[222]]], though. If you need to find items in arbitrarily nested lists, then you should recursively search through the sublists. You can see some examples of that sort of thing here: stackoverflow.com/q/11377208/4014959 In Python 3, you can simplify this using yield from. I have some more complicated examples of working with nested lists & dicts here stackoverflow.com/a/41778581/4014959 & in the other links there.
@kauray In particular, see stackoverflow.com/a/52414034/4014959
@AnnZen OTOH, I've also seen two people independently post virtually the same chunk of code. So it's not always easy to be confident that something is plagiarism.
 
 
2 hours later…
8:20 AM
@PaulMcG I think __del__ warnings are fine for this. While I often use PyPy (and it's great that PyParsing supports it) I usually develop using CPython, so __del__ warnings would be prompt. Even if they are not exact (PyPy, Shell, ...), it makes at least some noise that points at the problem.
The alternative would be some with pp.Forward() as .... That could actually be nice for usability and readability, but I'm not sure whether reworking the public API like that is worth it. There are probably some other things that might need streamlining at the same time (flattening of | operator chains, etc.).
 
 
1 hour later…
9:45 AM
is there some idiomatic way for pytest to test "does not reach this code"? I'm using assert False for now, but it feels somewhat hacky.
 
10:24 AM
Huh, I've just been shown an advert for a Hans Zimmer masterclass on writing film scores. Despite having no creative ability when it comes to music, I imagine that would be really interesting.
 
John Williams or bust
 
Honestly, I was waiting for that :P
 
> His works include The Lion King
I'll allow it
Also Hannibal and Madagascar
 
10:44 AM
Although, Circle of Life which I consider to be one of the greatest Disney songs ever written, was done by Elton John
 
Well duh :P
lol, worth looking at the foreign-language titles
"life is the master" (yeah that's us :D)
now I daren't read the original lyrics, which I've been low-key planning for a while...
 
Is "life is the master" an idiomatic translation of the concept?
 
nope
but it's more like "life rules"
But to be fair the concept is "az élet körforgása" which will never fit in a line of verse. And back then translations and dubs were decent at least.
Nowadays it's "The Quantum of Solace" -> "The silence of the quantum" (no, it also doesn't make sense in Hungarian)
(also no allusion to The Silence of the Lambs)
 
I mean, it's... intriguing I guess? First lambs, now the quantum. We've really come on leaps and bounds
Gah, Kevin'd
 
because that was translated to "The lambs stay silent" but at least that's OK
 
10:54 AM
But that's the opposite of what the film is about?
 
Which film?
OK, wow, the lyrics of Circle of Life have very little to do with the original. I'll try to find a translation or do it myself later.
 
Isn't the whole point of the film that she's trying to get over the issue of the screaming lambs? She'd have been better sitting at home watching Netflix if she only needed to keep the silence she'd already achieved (based on that translation of the title)
 
I think I've complained here about this several times...but anyway "Alien" became "The 8th passenger is death". At least that's entertaining :D
 
Less catchy, but informative :P
 
The problem is that there's no good word for alien. There's a word that means foreigner (which I know alien covers), but the word sounds...alien. There's another word that means "space creature" which also sounds weird.
but movie titles are the worst of the subject
 
11:01 AM
Given the prevalence of the "alien" concept (not just the film franchise but also things like District 9 (off the top of my head)) in Western film, I'm surprised the word hasn't just been adopted into the language
Or Independence Day, Men in Black etc. It's a sprawling theme
Then again, I have little-to-no concept of how languages work. Sometimes I struggle to English
 
englishisms usually sound weird
people are familiar with the word but it doesn't fit in Hungarian
there was an adoption attempt I saw a few months ago that creeped me out... but I don't remember what it was
then again one notable recent import word is "file", written as "fájl", which is ugh
 
11:19 AM
It's interesting because I use terms with French origins like "au fait" and "faux pas", for which I'd only find a clumsy way to express in English. Or "schadenfreude", actually. But these have existed for a long time for me; I'm not sure how I'd feel if we started trying to import new words
 
hello python
 
>>> hello
 
There are actually concepts that I find easier to describe in English. Like "straightforward". But I can only say that to people who don't look at me weird for putting English words in a Hungarian sentence.
 
@AndrasDeak That quote is glorious
 
11:44 AM
huh
>>> inspect.Signature(Exception)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/inspect.py", line 2774, in __init__
    for idx, param in enumerate(parameters):
TypeError: 'type' object is not iterable
unexpected bug of the day
 
neat
 
ok, let's all pretend that I'm not too stupid to write signature instead of Signature
 
hehe
@roganjosh I couldn't find a translation so here it is gist.github.com/adeak/478923ef5053f3b2737605e22d816ce9
there's, uh, a sun in the lyrics
plus it has a spoiler in Hungarian
of course the attitude is similar, and it was sang by the very nice alto of a Hungarian actress, probably quite similar to the original (I'll have to give it a listen sometime)
 
"So come and melt into us." sounds like something a cult might use in their advertising pamphlet. "Because life, life rules" suffers from "living one's best life" not existing at the time of translation, I guess
 
12:00 PM
yeah, although I wouldn't know, I was a young kid when I first heard it
"melt into us" might not be spot-on, it's more like "melt [in] among us"
probaly same cult thing though :D
 
How do you type ticks? Whenever I want to, I have to change the keyboard language.
 
Well...depends on your keyboard layout.
 
do you have a check mark symbol in you keyboard? I don't.
 
Check mark? I thought you meant backticks, sorry.
No, that doesn't sound too standard to me.
 
I meant backticks
 
12:05 PM
eh?
Backticks are probably there somewhere. Check marks probably not.
Instead of asking random strangers with random keyboards, look at your own keyboard layout :)
both your OS and the internet should make it possible to see every available key
 
internet tells me to use the wingding font.
 
That...is an interesting approach. Also almost always wrong.
 
never mind.
 
more like "use unicode characters"
since this is the python room:
>>> '\N{heavy check mark}'
'✔'
(there's also the regular one)
 
@AndrasDeak In any case, I gave their advertising a listen and her voice is actually rather soothing. Where do I sign up? :P
 
12:10 PM
yeah, it's very nice :)
you'll probably want to wait a few decades with membership :D
 
@AndrasDeak Cool! i didn't know we could do that.
 
@roganjosh that's one yamming good intro still...
 
12:33 PM
People not using url_for in Flask is starting to feel similar to SQL Injection to me. Not in terms of security, but in terms of brokenness of the XY attempts
 
Where can I see which user created each room?
 
you can't
 
Can you?
 
nope
You can see the first message, and you can see room owners. By default the only room owner is who created the room, which might help.
 
like Natty?
 
12:42 PM
Natty probably didn't create any rooms because they're a bot
 
I didn't know that!
 
just look at its profile on SO main
 
about those events, what do users do in them? just chat?
 
What events?
you seem to be forgetting that I'm not aware of the things you see before asking half questions here
 
1:01 PM
A big Hello to the group here
 
hello
 
1:43 PM
Cbg
 
cbg
 
cbg
 
@JossieCalderon what does that mean?
 
@AnnZen it's part of the Salad Language for this room
 
1:54 PM
I'll leave you with this graph...
 
@JossieCalderon Laurel
 
Most people cbg between 4 and 7 am and rbrb between 5 and 6 pm
The graph could have been made better but I didn't know regex at the time (and I still don't, LOL)
 
@JossieCalderon that's a cool graph, can I see the source?
 
@JossieCalderon what's "2500"?
 
2500 instances.
 
1:58 PM
of what?
 
@MisterMiyagi I think I've worked out a decent solution. When a Forward is created, I capture the calling frame. If the Forward expression gets properly defined later with <<= or <<, then I get rid of it. At __del__ time, if the calling frame is still there, then I can highlight that line and say a warning like "Hey! you never properly defined this Forward() - did you later define it using '=' when you should have used '<<='?"
 
@JossieCalderon This was quite misleading ell.stackexchange.com/questions/147345/…
 
@AnnZen oof, that's really not good given the global context
 
@AndrasDeak 2500 instances per increment. The y-axis shows 50, 100, 150...so multiple 2500 by 150 and that's how many cabbages have been said. I forgot to add "since..." so it's some what unclear, but it's irrelevant to the data I was finding
@AaronHall Do you want the data sheet or the code?
 
I see, so since all of them have 2500 as a multiplier I'd remove that from the legend and put it in the y label or y axis as a multiplier
 
2:02 PM
OK, makes sense
 
@JossieCalderon that's the exact same question, needs no oneboxing
 
Forgot I could hyperlink
 
@PaulMcG coroutines do something similar. you may want to take a look whether you can hijack that.
who the yam came up with sys._enablelegacywindowsfsencoding()? oO
 
2:22 PM
rbrb
 
2:35 PM
@JossieCalderon when I say "source" I usually mean code - yes code.
 
@MisterMiyagi that just adds an additional layer of legacy
 
3:04 PM
I don't have the original code anymore because it's on my old computer. All I have is this
 
3:35 PM
I know this is dumb, but this acts as a formatted string: "I like {} the most".replace("{}","red")
 
@JossieCalderon Ah, it's plotly. I thought maybe you did it with matplotlib. got it.
 
@AnnZen does that surprise you?
 
What do you mean?
 
Given that you mentioned it in chat, I'm wondering whether there is something in that which you're unclear about
 
No, it's just something I never thought of before.
 
4:08 PM
@AnnZen If you have multiple substitutions, maybe you could mark them "{0}", "{1}" and so on, and then you could selectively replace each one.
 
user11006952
cbg
 
4:25 PM
@PaulMcG Example?
 
@AnnZen "I like {0} better than {1}.".replace("{0}", "red").replace("{1}", "green") - oh look, I just reinvented str.format()
 
I'm not sure you reinvented str.format()... that's not a very practical piece of code.
 
I see in your profile that you are teaching Python beginners. Please don't teach them to use replace("{}", "red").
 
Why in the name of python would i do that?
 
@Permian Please strongly consider not to learn coding just via coding challenges. It is actively preventing your from learning at this point.
 
4:34 PM
Just referring to your original post. I guess you did say it was something dumb, but you posted it anyway, not sure why.
 
58 mins ago, by Ann Zen
No, it's just something I never thought of before.
 
@AnnZen I think Paul is just in the same boat as I was when reading your post. Generally, we'll interpret those "observations" (for want of a better word) as either a neat trick you've found or something you want clarification on.
 
I guess we all know that someone, somewhere out there is recommending .replace instead of .format. Vehemently and proudly.
Kinda makes you paranoid...
 
@AnnZen - we see a broad range of ideas around here. Glad I just misunderstood your thinking.
 
Are you talking about me, MisterMiyagi? I'm not paranoid!
:P
 
4:41 PM
@PaulMcG Are you implying that I supported the idea?
 
@roganjosh Of course not. Just relax, move a tad closer to the window, and assume a neutral face expression for 1 second. Remove your glasses and hat, in case you are wearing any.
 
Ah. I'll look pensive and stare into the middle distance. And no, no disguise today
@AnnZen it's a misunderstanding. The objective view: someone posts an unusual code snippet in the room, and says that they are not confused about why it works. People are accustomed to people posting snippets when they're either a) confused how they work (which you stated you weren't) or b) believe they've found a cool trick. Given that it's likely to be (b) in this case, Paul was concerned you'd pass the observation on
 
I'm 100% sure that there is a Python tutorial/guide/SO-answer out there that recommends using .replace for a task that should be done by .format.
That is in no way meant to suggest or imply that any present company has written or endorsed such a tutorial/guide/SO-answer.
 
4:58 PM
@Ann Zen - Once again, I'm sorry for implying anything of the sort. Out of curiosity, why did you post that original code fragment using replace()?
 
5:20 PM
She did say she knows it's dumb
 
6:08 PM
recbg
 
@roganjosh But are you sure?
 
6:24 PM
@toonarmycaptain Yes, I'm sure. Checking all the doors are locked 5 times is part of my daily exercise routine. Pulling down the blackout blinds is just part of doing my stretches
It's all normal stuff. Completely normal.... normal. You're writing an article about how abnormal I am, aren't you?!
 
@roganjosh ....I haven't got a pen in my hand?
 
Ahh, but tech has moved on. One does not write with a pen anymore
:P
 
I can sell you a mind-reading-proof metallic hat that includes protection from 5g
 
Do you do them in different colours?
 
6:41 PM
...I'll see what tinfoil options there are at the supermarket
 
@roganjosh There's a bimetallic number in two tone yellow uranium to block radio waves, and green copper to prevent infection with ideas. Get it in time for your summer bunker wear.
 
@AndrasDeak Why is that relevant when we're talking about high-tech gadgetry?
 
no reason :P
 
@toonarmycaptain Well, I do have a lot of followers that expect me to be looking my best. I can't live my best life if I don't have the right kit and two-tone really is in this year
 
If you want protection from 3G and 4G too, come live at my house. It's a 170 year old wood farmhouse that I swear has a Faraday cage built into it...
 
6:48 PM
I've got a matching bridge I can sell you. If you hook it up to high voltage, you can probably protect a whole party from most EM.
 
Ouch. I'm out in the hills but tactical phone placement gives me 4G
 
@MattDMo back then saber-tooth mammoths roamed the highways so trees had to grow thick metallic barks to protect themselves
 
@AndrasDeak are you sure you didn't mean saber-toothed beavers? I'm not sure tigers like trees that much
 
tigers, of course not
 
I could have sworn you wrote tigers
 
6:58 PM
that's brains for you ;)
I'm sure that's the only problem with that sentence
 
No, it's good.
 
Saber-tooth mammoths. They were such a blight on social advancement, writing about them was forbidden after Bob vs. Rhadamanthus. I don't need to revisit the details of that case; this is a child-friendly forum
 
TIL: when someone doesn't format their code in a question, and there's already a proposed edit fixing it, always click the "Improve Edit" button, never "Approve". Because now I can't edit it any more, and it's sitting in the review queue for who knows how long...
 
You can post to the edit pending review and we can vote on it to expedite the process
 
@MattDMo yup
 
Done
 
that tag...
 
thx
 
7:41 PM
Is this an actual "thing" in linear algebra? I've spent a lot of time looking over the question, as it has been updated, and I don't get it
 
7:56 PM
@Permian This is your third (at least) time asking about @property here.
between that and your regular behaviour I'm not having this conversation again
 
Better yet: Write code with it
 
@Aran-Fey you mean search leetcode submissions from others, right?
@roganjosh what is "this" in that?
nothing about that question strikes me as linear algebra, so the likely answer is "no"
 
@AndrasDeak whatever they are asking. I want to close as unclear but I'm worried I'm missing some standard transformation
 
Fair. I trust your eye on that :)
 
 
1 hour later…
9:16 PM
Just received the vote-close badge.
 
10:21 PM
@AnnZen congratulations!
 
10:45 PM
What is the difference between a hater and a secret admirer?
 
10:55 PM
@AaronHall Thanks.
 
Okie time for ExoticBirdsMerchant.exit() see you later
 

« first day (3522 days earlier)      last day (1418 days later) »