« first day (1655 days earlier)      last day (2462 days later) » 

21:01
fp by Nisse Engström
fp- by Zoe
Zoe
Zoe
@SmokeDetector Off-topic
J F
J F
21:17
cc @tripleee ^
Anyone here know about Python encoding stuff?
Or encoding stuff in general?
I've got a file that I need to put in a web request. Using MIME stuff as per stackoverflow.com/a/15763629/1849664 to do this; it needs to be multipart/related (XOP, ugh)
I'd say yes, but depends on the question
I've got an example of a working request from a black-box system, and a not-working request from my Python system (building a replacement)
I also have to source file
Looking at everything in hex, it's kinda confusing
Here's a snippet of hex from the successful request:
sounds like data you can not share?
ok
kinda can
21:20
my internet is slow today
iiiif I can figure it out
0x48, 0x65, 0x77, 0x6C, 0x65, 0x74, 0x74, 0x2D, 0x50, 0x61, 0x63, 0x6B, 0x61, 0x72, 0x64, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2
^ Successful request
The same snippet from the failing request (mine):
0x48, 0x65, 0x77, 0x6C, 0x65, 0x74, 0x74, 0x2D, 0x50, 0x61, 0x63, 0x6B, 0x61, 0x72, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
I'm pretty sure requests-toolbelt has an encoder for multipart/related, let me check
(ignore the trailing z's; just abusing chat)
you can do a blank newline at the beginning instead
21:23
[ SmokeDetector | MS ] Bad keyword in body, bad keyword in title: Can penis be used as a gun to kill people? by dIlLi0n The hAc0r on worldbuilding.SE
Now, the fun part - the file hex matches the failing request.
which makes no darn sense to me
wait, no, that's not true
This snippet from the file:
28 56 40 31 95 58 6b 4f 9e 2d 25 55 eb be b1 43 7f
Goes to this in the failing request:
0x28, 0x56, 0x40, 0x31, 0xEF, 0xBF, 0xBD, 0x58, 0x6B, 0x4F, 0xEF, 0xBF, 0xBD, 0x2D, 0x25, 0x55, 0xEF, 0xBF, 0xBD, 0xEF, 0xBF, 0xBD, 0xEF, 0xBF, 0xBD, 0x43, 0x7F
and this in the successful request:
0x28, 0x56, 0x40, 0x31, 0x20, 0x58, 0x6B, 0x4F, 0x20, 0x2D, 0x25, 0x55, 0xEB, 0xBE, 0xB1, 0x43, 0x7F
I think
None of this makes sense
So it's like the failing request does everything right except for converting 0x00 to 0x20, but I don't like special-casing that and delving down into binary nevermind, can't read
@SmokeDetector I'm tempted to say troll
@SmokeDetector k
21:45
@Undo Not sure what the topic of discussion is since I just jumped into chat, but there's a bunch of non-ASCII characters in the failing one
almost looks like the 'successful' one is replacing non-ascii chars with spaces
>.>
Might not be as successful as I thought
It's complicated; measuring success is less trivial than one would hope
@Undo Interesting -- not all of them though, there's a few towards the end
The failing request seems to add non-ASCII chars
(no idea if I'm being helpful or not, I just looked at the hex numbers and pointed out things that jumped out at me)
yeah, how the heck is this even working ever
okay wtf
I have no clue
sorry
heh, no worries
21:55
[ SmokeDetector | MS ] Potentially bad keyword in username: Analyzing data from Multiple sheets in Excel by John on superuser.com
fp by Nisse Engström
@Undo The non-ASCII characters have been replaced with Unicode replacement characters...
3
A: Malicious/Dead link removal Policy, Process, Product requested

OliUpdate: I made a thing: linkcheck.py. It works but how do we know what a bad domain is? So rather than wait around, I saw an opportunity to write some code and took it. It downloads the blacklists that Smoke Detector uses on new posts and edits and applies them against our entire database. Yo...

fyi
22:12
@SmokeDetector fpu-
@quartata Wow. Those reviewers should be investigated.
22:55
fp- by ByteCommander
!!/watch aboutplaystore\.blogspot\.com
@doppelgreener Added aboutplaystore\.blogspot\.com to watchlist
Restart: API quota is 8951.
serverfault.com/a/576355/340066 and askubuntu.com/a/424021/367990 old RHUB spam or legitimate attempt to answer?
23:14
the second one is definitely more sus
something is wrong with that link
sd naa-
naa- by Catija
waffles
@micsthepick refresh? When I first saw it, FIRE wasn't functioning but refreshing the page fixed it.
waffles
yep that worked

« first day (1655 days earlier)      last day (2462 days later) »