« first day (3456 days earlier)      last day (1485 days later) » 
00:00 - 19:0019:00 - 00:00

7:00 PM
Are those really three tabs for a single indentation level?
 
The second file tries to call blitme, but it fails to do so:
 
@Aran-Fey Oops! You're right. I need more coffee... Still, .replace('''\\\\''', ''\\'') isn't going to fix it. :)
 
def update_screen(star):
	star.blitme()
 
@YoelZajac please elaborate on "fails to do so"
You should start providing MCVEs in a code paste service, complete with full error.
 
@YoelZajac please can you collect this into a single post somewhere on something like dpaste rather than feeding it piecemeal? It's really hard to follow
 
I'll try.
 
There is no try.... (ok, I'll drop it :P)
 
Cabbage, @roganjosh. Congrats on becoming a RO!
 
@PM2Ring cbg PM. Many thanks :)
 
@MisterMiyagi Sure, but it really has to be closed as dupe, to prevent fgitw/dupe-pirates exploiting it for rep, both now and next time. I've been looking for decent dupe targets but it's a sea of bad stuff. This would have made a good CW.
 
7:06 PM
but only for now, if I've already started...

how can I call blitme() function without getting the following error:
'Star' object has no attribute 'blitme'
 
@YoelZajac closing as no MCVE.
 
@YoelZajac check for a record. it's the first url of google search.
 
In your broken-looking earlier example blitme was not indented. If that's true in your code then of course blitme is not a method on your class. In any other case we can't help using available information.
 
@wim Many agree that it's weird, and have suggested stuff like your highest rep on other sites should be used to calculate MSE privileges. But instead we have the slightly odd situation where some of the most active MSE people are primarily active on MSE, and may have far more rep there than on any other site.
 
I'm trying to get through learngitbranching and keep screwing up. Is there a way to just rewind the last command given, that I've forgotten while juggling too much, or are we really "committed" to every command given?
 
7:17 PM
@roganjosh undo?
 
@AndrasDeak perfect, thanks
Too many things going on at once so I guess I forgot that :(
 
also in the bottom right there's a small ? icon that has a few buttons, including undo
 
True. That seems like cheating but thankfully it can be undone by commands! :) My working memory is getting a bit of a battering with phone calls. Must power through, the tutorial is great :)
 
7:36 PM
Im trying to extract some html elements of a page with beautifulsoup. This page however is pretty flat without solid divs. Lets say I want all <p> tags after a certain <h2> tag that has a span inside it with a marker i could look for, until the next <h2> tag.
That cant look for the specific <h2> tag i need.
        html = u""
        for tag in soup.find("h2").next_siblings:
            if tag.name == "h2":
                break
            else:
                html += str(tag)
 
Any chance for you to upgrade to python 3? You really should.
 
It should be
 
then you don't ever need any u before ""
 
omg, unicode + str actually works in python2
 
@Aran-Fey Is the result a bytearray?
 
7:40 PM
maybe, I didn't check
 
Oh sorry, I got this somewhere else
 
Shouldnt change anything for the problem unfortunately haha
 
-2
Q: Buffer overflow attack using python and ubuntu

SaraI am trying to implement buffer overflow attack against an internal server provided by my school. I am using python to produce a text file to be used in the attack. I am using netcat and python in Ubuntu and here is some of what i have tried so far .. python3 -c 'print('\x42' *999 + '\x43' *999...

should definitly be closed
 
AMC
Yeah I just saw that.
What would be the close reason here?
 
7:43 PM
I don't know... I chose the last option of the flag
Since its kinda two things at once
a - bad question, super vague, makes no sense
b - asking to hack a school lol
 
@AMC personally I've gone with "needs more info"
 
AMC
@roganjosh Right, I should have gone with that, I was too focused on the whole "trying to mess up my school's computer system" thing.
 
Sure. The newer close reasons don't really help with covering "I'm trying to cause chaos"
 
@Theo Well, it seems that it's just a toy server that the students are supposed to attack. But of course we have to take Sara's word for that. ;) But yeah, it's still too broad to be a good question.
 
user10984358
@Theo I can’t view the question anymore, but from the preview in chat, OP mentions provided by school, maybe heir school wanted them test it?
 
7:49 PM
yeah she edited
to say that
apparently if she can't hack the server she fails the class
to which i said "have they not taught you how to hack the server in the class"
 
user10984358
Fair enough, but asking someone to do that for a course completion is far fetched. My uni expected much less :/
 
user10984358
Unless it’s a tale spun up for the question
 
old, needed more clarity. The OP's issue was simply "Calling os.path.basename() on a path ending in separator doesn't work right." So omit the trailing separator. Also stop using os.path, use pathlib.
 
bro
she responded: I am not telling you anything .. ignore my question and have a nice day – Sara 34 secs ago
 
@Theo please don't post full answers to typo questions. They are not helpful for future readers, and full answers block automatic deletion processes.
 
7:54 PM
sorry my bad
should i delete the answer?
 
don't forget that SO can be daunting for people and newer users will take votes in different ways. She might be defensive just because she wants it wiped out
 
@Theo it's up to you. We'll probably try deleting the question in 2 days anyway.
 
it is no more
 
@AndrasDeak It was nuked. I am in fact referring to the question Theo asked about stackoverflow.com/questions/60999757/…
 
@smci different question
@smci your original message replied to this message of Theo that asks if they should delete the answer. The answer on the typo that was markedly not nuked.
 
8:00 PM
whats going on i just deleted it and went on with my day
 
@Theo different discussions. This isn't about what you posted
 
@Theo you're fine
 
8:25 PM
Anyway, clearly the only reason I'm here right now was trying to put some order on the os.path vs pathlibquestions. As my posts above show. I don't have time for drama.
 
8:57 PM
I seem to always have trouble with saving JSON data into a file. How do I save a UTF-8 encoded JSON object into a file using pickle properly? When I open the file with Notepad++, it's showing a bunch of weird characters.
 
github is down & it's hampering my 1am productivity :-p
 
Line to open the file and write to it is: with open('file.txt', 'wb') as f: pickle.dump(my_object, f, protocol=pickle.HIGHEST_PROTOCOL)
 
there is no such thing as a "JSON object". JSON is a data serialization format
and that code looks correct (assuming you meant to create a pickle file and not a json file)
 
then I think I meant dictionary?
yeah the file gets overwritten properly
but I'm confused because when I open the file in Notepad, it's all odd
 
yeah, that's what pickle files look like
 
9:00 PM
hmm okay so if I want to create a JSON file, I should probably use the JSON package right?
 
Right.
 
haha I'm stupid
 
@shad0w_wa1k3r run away!
 
can't, we have 8pm to 6am movement restrictions here :D
 
run in circles around the couch?
 
9:03 PM
wifey's asleep :-p
 
...on tiptoe?
 
okay, since you insist, I'm gonna try that. Anyway need a break :)
 
Just don't wear any shoes. Running in socks is quiet... until you slip and yell "ouch"
 
Good jog, I managed to not slip. Back to checking githubstatus
 
hey cabbage divers
 
9:18 PM
@shad0w_wa1k3r loads for me now
 
cbg Todd
 
it's hard to find definitive answers to some filesystem driver questions... I've had to get all my answers from the source code of the libraries I use.
 
@AndrasDeak yeah, working here too. Pity the devops guys everywhere tackling disruptions.
 
 
2 hours later…
11:12 PM
Package install on Windows failing Do we have good existing questions covering the usual causes: a) Did conda (or pip) already have <pkg> installed? If yes to either/both, b) was that installed with user privileges, or administrator privileges?
 
11:27 PM
anyone here familiar with Authorize.net payment processing?
 
wim
Userscript request: one that hides the answers using esoteric languages on codegolf. the site has some fun programming puzzles (e.g. How happy is this emoticon? which I saw in HNQ today), but wading through the many submissions that are using dumb esolang that I can't read and don't care about is a drag, so I don't visit the site much.
 
sounds like a weekend coding project
 
11:50 PM
@wim well, those are golfing languages...it's only expected to find them on PPCG :)
very rare to see three python 3 submissions and no python 2
 
00:00 - 19:0019:00 - 00:00

« first day (3456 days earlier)      last day (1485 days later) »