« first day (76 days earlier)      last day (3744 days later) » 

1:22 AM
time for sleepings
night
 
night
 
 
3 hours later…
@Jan more spam
 
5:11 AM
Is Manish's spam bot still running?
 
no new baba spam that I would have detected
 
Seems to have been slow the last couple of days.
 
maybe it's due to the improvements on the server side?
 
5:35 AM
probably.
Tim has been working hard on that spam system lately.
 
so, have I been replaced by a machine? Why does that remind me of Great Britain at the start of the industrial revolution?
 
@ManishEarth false positive
(but still possible bad question)
 
 
3 hours later…
8:53 AM
Bot has been turned on for MSO chat
 
 
1 hour later…
 
1 hour later…
yeah... it smells phishy
 
 
2 hours later…
2:28 PM
Just thought I would mention that the only two invalid "please-accepts" that I found so far were both "please accept my apologies"
 
3:05 PM
Whole post script uses post flags instead of comment flags?
 
@3ve yup
 
Okay, good
Because I'm out of comment flags
 
mods tend to like comment flags better, though.
 
I tend to prefer comment flags, but I would have gone over my comment flags limit otherwise
My yesterday's comment flags were just marked as helpful so I got an extra flag, yay
 
 
1 hour later…
4:33 PM
@Manish Do you have any more improvements to make to Smoke Detector?
 
@hichris123 Um, extension of findspam, basically. I can later make ws.py use a new findspam function if/when you write it
 
So basically improvements to the algo?
 
Yeah
@hichris123 once we have data from Cinder, we can do more improvements
Currently we need a regex-blacklist/whitelist system
Oh, also, I need to make it work for answers.
 
@ManishEarth Site wise? I was looking at dictionaries, and we could build a dictionary of them... does the site get exposed in the websocket?
@ManishEarth We need to find something to do that...
 
@hichris123 yes
too many API requests
@hichris123 We'd have to API the fetched question to get all answers :/
 
4:44 PM
That would be way too many API requests...
If there was a hidden websocket for them...
 
I looked
wait, not hard enough
 
Meaning there might be one?
 
@hichris123 So, ws://sockets.ny.stackexchange.com works like this: You first send it what you want (in this case "155-questions-active", let's call this the "data type"), and it responds with data corresponding to that.
You can also give it multiple data types (just send them one after the other), and it will return everything it gets for each one, with the results tagged according to which datatype they correspond to. The number "155" is site id, for example, SuperUser is like 3-*-*. (eg 3-questions-new). I guess 155 is for stackexchange.com
 
so, 155-posts-active?
 
dunno
 
4:53 PM
it would be awesome; try it out
 
posts doesn't seem to work; nor does answers
it would be nice to have it documented somewhere
155-questions-new doesn't seem to return anything either
 
@ManishEarth So basically you could go through that instead of the API?
 
5:11 PM
wait, you're using the API to get the question feed? I'm using the websocket
 
@JanDvorak No, we're using the websocket. I was saying for retrieving the answers of a question...
 
 
1 hour later…
0
Q: How do the Stack Exchange WebSockets work? What are all the options you can send to them?

Doorknob of SnowThe Stack Exchange WebSockets are handy for various things (like handling spam). For example, try running this JavaScript in your browser's console: var w = new WebSocket("ws://sockets.ny.stackexchange.com/"); w.onmessage = function(e) { console.log(e) }; w.onopen = function() { w.send("155-ques...

 
@DoorknobofSnow yes. yes yes yes. me wants answer!
 
6:30 PM
I always miss the spam D:
 
Me too ;(
 
I hope the devs realize that if they don't tell us, we'll just write scripts to try things :P — Undo 6 mins ago
Or we just ping people until we get the answer. :P
 
It's true!
 
@Undo Is there a way you know of to get what page the user is on, and then make that page the "active" page in the NavBar?
 
@hichris123 Uhmm... uh...
I suppose there's a way to get the current URL somewhere.
 
6:34 PM
googles this...
 
window.location, you mean?
 
In PHP, methinks
Not JS
 
Yeah, PHP.
10
Q: How to get URL of current page in PHP

Click UpvoteIn PHP, how can I get the URL of the current page? Preferably just the parts after http://domain.com.

This looks promising...
Click Upvote, Your favorite IDE
27.5k 107 283 456
Well then... :P
 
ha
 
6:54 PM
Ooh, I'm getting closer...
 
@hichris123 yeah
 
7:25 PM
@Undo Got the NavBar! 54.236.239.138/close.php
 
@hichris123 Yay!
 
Doesn't look too too bad... I still do need to format it. :P
 
7:38 PM
 
 
1 hour later…
8:39 PM
what the
 
@Seth ?
 
That title...
btw, <siteid>-home-active looks hopful
 
Self-vandalized.
 
I hate it when that happens.
 
@Seth does it hold the answer bodies?
 
8:41 PM
@JanDvorak I doubt it.. (I've never used websockets before, still figuring that out)
 
@Seth no, it doesn't hold the answer bodies :(
 
@ManishEarth Does it give us the question ID at least?
We could maybe query the API from then on, it would be expensive, but doable.
 
@Seth so does the network feed
 
@JanDvorak yeah true.
 
@Seth we would have to query the api for every question
 
8:43 PM
but the home-active would be useful for per site spam bots
@ManishEarth I know :-/
@hichris123 If you're interested in reading edit wars read this one: askubuntu.com/posts/246146/revisions?page=1
A live answers feed would definitely be the best..
 
@Seth Gosh.
 
9:03 PM
$ python ws.py
Traceback (most recent call last):
  File "ws.py", line 35, in <module>
    ws = websocket.create_connection("ws://sockets.ny.stackexchange.com/")
AttributeError: 'module' object has no attribute 'create_connection'
@ManishEarth ^ Any ideas?
ws = websocket.create_connection("ws://sockets.ny.stackexchange.com/") //35
ws.send("155-questions-active")
while True:
  a=ws.recv()
 
import something?
@Undo import websocket
 
gotit
had the wrong websocket-client installed
 
How can you have the wrong websocket-client?
 
I dunno. But uninstalling and reinstalling did it :P
 
MYSQL WORK!
 
9:09 PM
YAY!
 
^ That's what I fel right now.
@Undo It didn't work yet.
:(
 
;(
 
I need a tutorial. :P
2014-02-01 16:07:03 - Starting server...
2014-02-01 16:07:05 - Status check of service 'MySQL57' returned start pending
2014-02-01 16:07:05 - Server start done.
2014-02-01 16:07:05 - Status check of service 'MySQL57' returned start pending
2014-02-01 16:07:11 - Server is stopped
 
@Undo from websocket import *
or import websocket
syntax
 
Got that one fixed
 
9:12 PM
python has two ways of using modules
 
in Tavern on the Meta on Meta Stack Overflow Chat, 14 secs ago, by Bart
First @Manishearth turns this into Physics chat. Now he turns it into Javascript chat. What will he try next? :p
 
@ManishEarth How do I get the first x characters of a string?
 
@Undo When/if I ever get this up, you're going to write a blog post on it. :P
 
:P
 
@Undo "abc"[0:x]
 
9:21 PM
@ManishEarth Ok, lemme try it.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "ws.py", line 25, in handlespam
    m=d[0:5]
TypeError: unhashable type
@ManishEarth ^ ;(
 
what did you dooooo
oh
is d a string?
 
I hope so :P
def handlespam(data):
  d=json.loads(json.loads(data)["data"])
  s=(d["titleEncodedFancy"].encode("ascii","xmlcharrefreplace"),d["url"]);
  m=d[0:5]
  print m
Ooooh
I see it.
 
@Undo whatcha making? the push? In that case, cut out the chatbrowser bits
 
@Manish Do you know any MySQL magic?
 
@ManishEarth Already did.
I forked your repo on GH
It works!
And now I've got to go. Cya folks!
 
9:27 PM
Cya!
Aha!
2014-02-01T21:26:04.252966Z 0 [ERROR] InnoDB: File .\ib_logfile0: 'aio read' returned OS error 187. Cannot continue operation
2014-02-01T21:26:04.253966Z 0 [ERROR] InnoDB: Cannot continue operation.
2014-02-01 16:34:12 - Status check of service 'MySQL57' returned start pending

2014-02-01 16:34:12 - Server start done.

2014-02-01 16:34:12 - Status check of service 'MySQL57' returned start pending

2014-02-01 16:34:18 - Server is running

2014-02-01 16:34:19 - Server is running
Yay!
@Undo I fixed it! :P
I almost feel like making an SO post on it...
 
 
1 hour later…
10:38 PM
Hiya @Undo!
 
Hiya!
 
Me likey when stuff is fixed. :P
 
Me does too
 
/* Delimiter changed to ; */
/* Connecting to localhost via MySQL (TCP/IP), username , using password: Yes ... */
/* Connected. Thread-ID: 6 */
 
:D
 
10:41 PM
Yep.
All I had to do was add innodb_flush_method=normal to my my.ini. :P
 

« first day (76 days earlier)      last day (3744 days later) »