102

... like messing up the Help Center?

What if I see someone doing something bad?

I have a log file being written by another process which I want to watch for changes. Each time a change occurrs I'd like to read the new data in to do some processing on it.

What's the best way to do this? I was hoping there'd be some sort of hook from the PyWin32 library. I've found the win32file.FindNextChangeNotification function but have no idea how to ask it to watch a specific file.

If anyone's done anything like this I'd be really grateful to hear how...

[Edit] I should have mentioned that I was after a solution that doesn't require polling.

[Edit] Curses! It seems this doesn't work over a mapped network drive. I'm guessing windows doesn't 'hear' any updates to the file the way it does on a local disk.

The text seems to be plagiarized from this question, and all other help center links (on all SE sites) seem to be affected as well.

10
  • 1
    Entire network is affected
    – user247702
    Commented Mar 10, 2017 at 22:28
  • 3
    All the help center links are doing this; looks like a post cache leaking? stackoverflow.com/help/privileges/site-analytics, for example
    – Undo Mod
    Commented Mar 10, 2017 at 22:28
  • 17
    Nick Craver tweet in 3 ... 2 ...
    – Bart
    Commented Mar 10, 2017 at 22:35
  • 8
    @Bart poor Nick
    – user247702
    Commented Mar 10, 2017 at 22:35
  • 4
    Nick has been notified and is fixing.
    – Oded StaffMod
    Commented Mar 10, 2017 at 22:41
  • 11
    @Oded should I change the title to What if I see someone, like Nick Craver, doing something bad??
    – Glorfindel
    Commented Mar 10, 2017 at 22:51
  • 5
    Seems appropriate.
    – Oded StaffMod
    Commented Mar 10, 2017 at 22:51
  • 4
    What if I see someone, like Nick Carver, doing something bad? Feel relieved that if the programmers on Stack Overflow can make mistakes, it's not so bad that I do too. :D
    – user3956566
    Commented Mar 11, 2017 at 6:36
  • 5
    To answer the title of the question: "Just let him do it, it is the only way he will learn I'm afraid" :P Commented Mar 13, 2017 at 19:18
  • 1
    not my fault (spin the wheel)
    – Sklivvz
    Commented Mar 13, 2017 at 22:31

2 Answers 2

106

So I refactored the logging of the mass rebake route for HTTPS-ing help center articles and I moved a critical variable. The one that says which site to get the article from.

Good news: logging is really awesome
Bad news: all the help articles are from the wrong sites

...a new build is going up that will restore all of these. ETA: ~10 minutes.

Edit: fix complete, everything you saw was an illusion.

Edit 2: Since I'm a giver, here's the fix commit, and I promise not to commit any more code this week:

enter image description here

8
  • 2
    I'm now intrigued what site runs help answers like If you do db:schema:load you will loose all your data! :-D
    – Martijn Pieters Mod
    Commented Mar 10, 2017 at 22:46
  • 1
    @MartijnPieters google.nl/…
    – Glorfindel
    Commented Mar 10, 2017 at 22:46
  • 1
    @Glorfindel: deleted answer on SO. So the help articles are from answer posts, not the help center.
    – Martijn Pieters Mod
    Commented Mar 10, 2017 at 22:48
  • @MartijnPieters all help articles from all sites seem to be taken from (relatively old) SO posts.
    – Glorfindel
    Commented Mar 10, 2017 at 22:49
  • 57
    I wish I could screw up this badly in my job and get a badge for it. Commented Mar 10, 2017 at 23:01
  • 30
    Yeah. All I ever get is badgered. :(
    – terdon
    Commented Mar 10, 2017 at 23:12
  • Half tempted to fix the spelling in that answer. It's a bit loose. Commented Mar 11, 2017 at 5:20
  • 2
    I am sorry, I should really have written more unit tests around the help center! /ducks
    – Sklivvz
    Commented Mar 13, 2017 at 22:32
175

Here's a couple of gems, from this brief and gloriously underappreciated moment, preserved for posterity:


enter image description here


enter image description here


From chat:

enter image description here


enter image description here


With credit to Sasha for the capture...

enter image description here


from Worldbuilding

6
  • 38
    Sometimes I really miss the bounty function on Meta.
    – Glorfindel
    Commented Mar 10, 2017 at 22:56
  • 41
    This should come back for April Fool's day.
    – Travis J
    Commented Mar 10, 2017 at 23:15
  • 16
    Holy cow, the solution to the review problem. Commented Mar 10, 2017 at 23:29
  • 57
    This is what Cygwin is for, you know. Commented Mar 11, 2017 at 0:00
  • 1
    Curious to know if other metas have their owns preserved too!
    – Veve
    Commented Mar 11, 2017 at 1:00
  • 24
    Just vote against McCain and the Republicans Goddamnit, Joel.
    – user1228
    Commented Mar 13, 2017 at 14:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .