« first day (2629 days earlier)      last day (2544 days later) » 
00:00 - 18:0018:00 - 00:00

18:00
It takes a pretty good amount of effort to ignore everything to the point of getting question banned, especially permanently
They could take up bowling instead
I may have to, forget trying to learn more about coding. Im going that that perfect 300 game.
@Simon Tim lost his keys again? Or the downvoters thought you should've RTFM to see what the arguments of those methods meant? Don't know
But yes youre right you have to ignore many of the rules to post a question that gets you banned. However a few poor questions can get you there as well from my understanding.
There's probably a good training optimization programming problem lurking there
@ZackTarr not just rules; also a bunch of warnings as far as I know
18:03
@AndrasDeak So it's just the stupidity of the question that earned me that.
@Simon I'm only guessing here, and I'm not trying to judge how stupid the question is
Well it is stupid.
(Now anyway)
it superficially seems to be an acceptable question as far as SO norms go
If were are till talking about mine that simon found. Its pretty dang stupid.
@ZackTarr we're talking about Simon's that he linked a page up ^
18:05
@ZackTarr No. yours needs more details/explanation/research.
Id say you question was better than my random guess.
I wouldnt say that. Mine had so much just not going for it. Guess Im just SOL on asking any questions for a while. Ill try to beat some people to answering questions to get it lifted.
I have another technique that works for me.
Look at the profiles of newcomers when they ask something and see if they ask anything else you can solve.
For example I saw one newcomer here who was so good at tagging you would never find his question without looking at his profile.
Sure enough no answer and about 5 views.
I like that! I try to get on once or twice a day at work to look at questions but havent be able to find any thing that hasnt been answered that I feel I can help on.
I forgot to say I answered all 3 of his questions. :)
@ZackTarr I would for someone who has been a member for 5 years your not very active.
Thats always good! When I get into most questions I feel like it would be the blind leading the blind if I were to try to help. Ill just have to wait for someone to ask something easy.
Yeah this account sat for a good time after I was out of school. But I code on the side sometimes so I occasionally have questions.
18:17
Also any modules your good at?
I mean like a wizard?
The more uncommon the better.
Ive began to get an understanding of PyQt4, which is pretty common from the looks. I am decent at using SendKeys but I just use AHk for that instead.
Keep a good eye on those particular tags rather than just the broad ones like "Python" or "C"
19:12
Wow 20 reviewed in the triage in 6min. That's a personal best. :)
it's not a race, make sure you do each and every one right
Time to review the reviews
@AndrasDeak I have passed three tests while I was doing it.
so what?
So I must have been doing them right.
19:16
hehe, OK
ignnore me
That's impossible (and anyway I don't want to).
@cᴏʟᴅsᴘᴇᴇᴅ racing towards the great answer, side by side :D
:|
leading by example is enough, you really don't have to explicitly encourage him
@AndrasDeak we started at 92, now both at 97 :P
should I congratulate spurious bounties and vote soliciting?
assuming the bounty thing you mentioned was implemented, I never checked :P
19:30
I've been writing the tau letter wrongly my whole life
Good god
20:20
@Simon Wanted to check if this was a better answer per our discussion earlier. ;) stackoverflow.com/questions/47997950/…
Just let me see...
At the very least I can say I tried haha.
Ah Pandas not my thing.
Yeah I read that piece right after posting here. But I guess if someone finds it and doesnt want pandas they can use mine. Ive never used Pandas so I can really help from there.
It's tagged Pandas as well so the alarm bells start ringing. I'm still understanding the question.
I wouldn't say the question's that good (disregarding your answer at the moment).
20:27
True. Has CSV as well so I could see it happening but its probably an off topic answer in most user's eyes.
If I had been in your position I would have commented asking for what he has tried, a better explanation of what he is asking.
Fair enough. Trying what I can. Will comments also help towards the ban? Just curious. I know they can help me get and answer that will help towards it.
I can't say anything about your answer yet. Apart from it's structure is OK, the code is formatted and there are some links (Not sure if relevant yet)
They are to the docs for CSV. I wouldnt say relevant to the question given myself not seeing Pandas until after. But it is relevant to my answer. (Its where I got the code)
@ZackTarr As for comments they are good things. Use them when you need more info are unsure (if you know about the subject) and giving advice.
As long as your not rude/spamming with them I can't see why you'd ever have trouble with those.
20:37
What was removed?
No my mistake for a moment it said this post has been removed.
Must have been my internet or something :/
No worries. Was just curious as I could see it.
You've got an comment you know.
OMG it's gone again!
Gone Gone Gone.
Yep looks like he deleted the whole post. Wonder if he figured it out.
Probably. It looks like a trivial question.
@ZackTarr Your answer looks ok. I have one concern though. That is you might be desperate to answer something.
In most cases you should know at least a bit about the each subject the question is tagged.
Pandas and CSV in this case.
Because if your relying on the docs each time you might get down-votes where people think you don't know what your doing.
20:47
I object
Which part
Sometimes askers use all sorts of irrelevant tags. A tag alone means nothing. If the actual tag is relevant, that is obvious from the question itself.
Ok fair enough.
A non-pandas answer to "How do I do X using pandas" is wrong. A non-pandas answer to "How do I do X with my csv" tagged with pandas is perfectly fine, often even superior
agreed with Andras on this. Irrelevant tags comes with the question all the time
20:50
Amended comment: "In most cases you should know at least a bit about the each subject the question is tagged asking."
Better?
better :P
Yeah but Simon is correct in what he said about mine. I hurried to answer and missed with in the question it saying something about pandas. Which looks to have been edited out before he deleted it.
yeah; I was talking generalities, not to say that Simon was wrong in this particular instance
Fair. I was half just confirming my understanding in the way I went about that answer.
@ZackTarr AndrasDeak is right. I cover the html tag a lot and many people think it always requires a css and JavaScript tag with it
20:53
I see. Sometimes the tags make sense but if you look at the other question under them you see that it does not. Ive definitely made that mistake in the past
Before now we've been faced with some named VBA, python, java, perl
I think it was Java
It turns out to be a question on reading a line or something "in any language" (the exact words)
close as too broad
Yeah you did!
Just an example for ZackTarr
@ZackTarr I have nothing else to say really apart from warning you
1) only answer questions you know the answer to or can get to an answer without random guesses
2) Use comments for comments/suggestions/clarifications
3) Make a good answer. If it's new make a rough answer (that's still acceptable) and make it perfect as soon as you've posted
otherwise take your time and explain. Use code when nessesary
21:36
Turns out PyCryptoDome isn't backwards compatible with PyCrypto...
22:31
Sometimes I think there're people on SO who upvote crap in hopes of giving me a heart attack
Somehow that one answer got another upvote even after it was at negative score with examples of it being completely wrong. At least it's deleted now.
Lots of people vote on stuff they don't know anything about, unfortunately
22:55
if filename[-4:] == ".txt":
object_key = filename.replace(".txt", ".anr")
else:
object_key = filename + ".anr"
is there a way to do this in 1 line? I basically need to check if my file extension ends with .txt I replace with .anr else just append .anr to the filename:
@user1692342 my motto is to write as simple as possible, but no simpler. Looks to me like you hit the "no simpler" threshold.
from pathlib import Path

object_key = Path(filename).with_suffix('.anr')
That ^ also fixes a bug in your code.
Whats the bug? :o
You're replacing all occurences of .txt, not just the last one
Don't handle file paths manually. Use the right tools for the job.
Thanks!
I just assumed that .txt will be only present at the end. but you're right.
better to use built in functions
23:06
In [13]: Path('a.jpg').with_suffix('.anr')
Out[13]: PosixPath('a.anr')
In that case the correct return value would probably be a.jpg.anr
I am looking for a.anr ..not a.jpg.anr
Oh yeah, nice catch
That means I fixed two bugs \o/
how do I convert the posixpath to a string?
str(path)
Only if you have a good reason though :P
23:13
@vaultah @Rawing what if I needed to do instead of .anr I need to replace with _raw.anr ? with_suffix won't work in this case right
In [26]: path = Path('a.jpg'); path.with_name(path.stem + '_raw.anr')
Out[26]: PosixPath('a_raw.anr')
bleh, why isn't there a with_stem method
pathlib is so half-baked
Well it's still quite new
Thanks!
Huh, I just realized the functions in the shutil module already accept Path instances instead of strings, even though it doesn't seem to be mentioned in the documentation at all
23:26
I guess shutil supports them because os.path supports them
It's documented ^
I knew it's documented in the os module, but does the shutil documentation state that it uses the os.path functions internally?
perhaps it's an implementation detail
you're rocking that hat, @vaultah
"hat"
I was first going to say "ribbon" :D
MGE
MGE
hello, I have this 0.00022 - 0.00021 and it returns 1.0e-5
I want to print 0.00001
23:34
@AndrasDeak thanks :D
1930
Q: Is floating point math broken?

Cato Johnston0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why does this happen?

You can use the decimal module
(Don't ask me how, I've never used it)
In [37]: format(0.00022 - 0.00021, 'f')
Out[37]: '0.000010'
But then you'll have fixed precision
MGE
MGE
hmm
0.00024190 - 0.00024182 using
diff_value = format(price_f - current_value, 'f')
then pass to str and print 0.00000
price_f = 0.00024190
current_value = 0.00024182
The default precision is 6
00:00 - 18:0018:00 - 00:00

« first day (2629 days earlier)      last day (2544 days later) »