« first day (2369 days earlier)      last day (2802 days later) » 

21:00
you could always up the ante by writing a shouting twitterbot
21:17
> import wwiii
print(wwiii.start_date)
@enderland ModuleNotFoundError: No module named 'wwiii'
that's good
maybe from __future__ import wwiii
@Uriel You need to add pypi.nnintendoo.com to index-servers in your .pypirc.
Hmm I guess using pickle-files as user input/uploads to my server-sided is still not the way to go right?
21:30
considering that unpickling can lead to arbitrary code execution, probably not
> Warning

The pickle module is not secure against erroneous or maliciously constructed data. Never unpickle data received from an untrusted or unauthenticated source.
@paul23 depends what you want them to be able to do ;)
class Foo(object):
def __reduce__(self):
return (os.system, ('arbitrary shell command',))

killer_pickle = pickle.dumps(Foo())
odd - I thought code blocks were supposed to work here.
give them an extra level of indentation & mark them as "fixed font"
Anyway, unpickling that would execute whatever arbitrary shell command you put in place of 'arbitrary shell command'.
@user2357112 what operations call __reduce__?
21:39
@Uriel: Pickling. pickle.dump and pickle.dumps use it to figure out how to pickle things.
@ZeroPiraeus: I'ma gonna watch you, mate! Watch that click! :-D
(thank you! very very much!)
@MartijnPieters Nice bounty you got there. It'd be a shame if anything happened to it …
(you're welcome)
@ZeroPiraeus ooh, spiffy new avatar!
shiny!
Ta :-)
I can't claim credit for the design (but am keeping schtumm as to where credit lies, to see whether anyone recognises it).
(note: google image search is cheating)
It's just a phi?
21:51
It is a phi. It is not, however, just a phi.
Well the way I write it down in equation if I'm that special to you..
Of course you're special to me, @paul23. Everyone here is special to me :-)
I'm not sufficiently French to understand the image search results.
Cheater! (yup also guilty as charged)
I'd not be for him though, prefer a more womanly character :P
@ZeroPiraeus that's nice of you, sharing your rep with the poor fellow ;)
22:02
@AndrasDeak I think of it as a kind of participation prize ;-)
@ZeroPiraeus a-ha! [in a French accent]
oh-hon
that's a good question, dude
@user2357112 they work for multiline messages if you press ctrl+k or the "fixed font" button that appears for multiline messages
I have a question about invalid syntax I don't understand what's wrong :
@AndrasDeak The sorting one? Thanks :-) For some reason the only questions I ever have that I need to actually ask on SO (rather than finding them already answered) are of the "I wonder …" variety, rather than actual practical problems.
22:09
@Hexacoordinate-C have you looked at the line the compiler complains about, and the line before that?
@ZeroPiraeus one man's academical musing might become another man's application
result = 0
longest = 0
for i in range(1, 1000000):
    length = len(nb.syr((i))
    **if length > longest:**
        result = i
        longest = length
print(result)
the one between stars
@Hexacoordinate-C closing paren of len(
1 min ago, by Andras Deak
@Hexacoordinate-C have you looked at the line the compiler complains about, and the line before that?
@AndrasDeak: Huh, didn't know there was such a button. (As for why my manual formatting failed, it turned out I needed 4 spaces on the blank line, too.)
22:11
The invalid syntax is for the line between stars
@user2357112 the ways of chat markdown are mysterious:/
@Hexacoordinate-C :|
please stop to read before you post more messages
I erased the ) when I copy paste here
So well I don't understand what's wrong lol. It makes me crazy for a hour now
@Hexacoordinate-C what is nb?
22:14
It's either that or tabs/spaces mixed. You'll have to start by telling us the error message.
nb.syr works perfectly
you've been here before so the fact that we need an MCVE complete with specific error message shouldn't come as a shock to you
The complet error message is "invalid syntax" nothing more. And it refers to the line between stars as said before
And what is giving you that error message?
Oh man lol this line : "if length > longest:"
22:17
:|
how are you running your program?
I wonder how many of the people who claim to have made copy-paste errors actually copy-pasted. It's not like we're using scissors and glue here; Ctrl-C won't accidentally snip off a character at the end of a line in the middle of the text.
I just run it in WinPython
@user2357112 I added stars here
I'm definitely going to have a severe reaction if it's the missing parenthesis....so 95% chance
please, @Hexacoordinate-C count the parentheses on the line before the one you starred
do you see 3 opening and 3 closing parentheses on that line?
97%
It works in all other files but not in this one
that doesn't answer my question in any way
22:25
I'm 22 yo I know the numbers from 1 to 3 you know
I believe you if you tell me that the parentheses are balanced, but you haven't
And until we make sure that I'm not debugging a problem that I had already solved (as it happens a lot with 22-year-old programmers and older ones as well), I'm not moving forward.
as I can tell you've only responded to me in a single message of yours, regarding the error message
I said at the beginning I made an error here before adding the stars I removed a parenthesis
oh, and WinPython, sorry
@Hexacoordinate-C I hope you believe me that this wouldn't have been the first time that someone with a typo claims that their typo is only in their question :P
so, the second best guess is whitespace, considering that other files with the same code seem to work
if you mix tabs and whitespace, you likely get indentation errors (or TabErrors, in python 3)
Hum let see
try to open your code with something that can visually distinguish between tabs and spaces, or just rewrite the indentation of that block to make sure it's only space
22:31
@Hexacoordinate-C the thing is, aside from the parenthesis (which, ok, you're saying is a paste artefact), there is no syntax error other than the missing paren in the code you pasted. Even if it were a tab/space issue, you should be getting IndentationError rather than SyntaxError. So, you can see how it might be frustrating for someone when you paste code with exactly one syntax error (the missing paren), and it's pointed out, and you say "no, it's not that, I'm 22 yo".
A tab is 4 spaces ?
no, a tab is a tab
@ZeroPiraeus (who knows what winpython calls its errors...a message of only "invalid syntax" doesn't sound like anything reasonable)
(and +1)
@ZeroPiraeus I'm not here to make you lose your time. I have much better to do than that.
I'm voting to close this conversation for lacking a complete error message or MCVE.
Side note to anyone who has yet to discover this fact: everyone, of any age, who cites their age as grounds for feeling patronised by others fully deserves to be patronised. I was an idiot at 22, which I realised at around 27. At about 32 I realised I was an idiot at 27. I am sure that in five years I will realise that I was an idiot at 44.
6
22:39
:D
It's Zero Piraeus shaking his cane at himself all the way down
Damn straight, kid.
I need to sleep. Maybe I'll be back tomorrow with same question. See you and thank you for your support. Now I know I'm an idiot. So I learnt something today then I'll be less an idiot than I was... :)
Also, if you see the Buddha in the road …
Life is a series of trying to be less of an idiot than the previous day, so good luck.
5
I fail at life
22:50
@paul23 let me give you scientific comfort. Perhaps you have an inherent level of idiocy that you cannot physically transcend, so you've reached your minimal level of being an idiot and you can't help not becoming less of an idiot. Feeling better? ;)
@AndrasDeak you're in the truth :-)
See you
if I had more time and curiosity I'd install a virtual windows to see what winpython does with indentation errors
on the one hand I find it hard to believe that a python interpreter doesn't give a clear error message, but on the other hand there's "win" in the name
It is my fervent hope that sometime soon MS goes back from numbered versions to the NT/ME/XP model with "Windows Next Generation", or NG. That way, when it inevitably sucks harder than any MS product ever has before, we'll all be able to joke that we're "tired of Win NG".

« first day (2369 days earlier)      last day (2802 days later) »