tp_ids = Feedback.joins(:post).where("feedback_type LIKE '%tp%'").group("posts.id").count.map{|k,v| k}
tp_posts = Post.find(tp_ids)
File.open("/Users/me/Desktop/tp_posts.json", "w") do |f|
f.write(tp_posts.to_json)
end
^ for future self, this is a (terribly inefficent) way to do this
I am testing out Bootstrap 3 responsiveness navbar and I have a demo website. When I resize the browser on a desktop, it all works fine including the nav bar which become collapsible menu with a small icon on the top which I can click to see more menu buttons.
But when I tried it from a mobile ...
@hichris123 If someone uses the spam <link> format, yes. But, since most rooms now report posts through Smokey using !!/report it doesn't catch much unique stuff
[ SmokeDetector ] URL-only title, bad keyword in body, link at end of body, link following arrow in body, pattern-matching website in body, pattern-matching website in title: http://phytolyft.com/noocube/ by suzakaeg on askubuntu.com[?]
@Sally, hi. I'm one of the room owners in SOCVR. While this won't happen much, can you give us a heads up when the user account is going to change (like from Smoke Detector to Sally)? Lessens the confusion and avoids kicks. Thanks!
Should be using Unicode ellipsis (1 char) instead of [?] now.
As for the root cause... probably a botched file operation again? I guess Smokey is busy reverting hundreds of commits and restarting after each, until it reaches the state predating the usage of that particular file.
One thing to do would be not to store the queue every time: only do it when exiting for a restart or because of an exception.
> Url in title, phone number detected in title ---------- Title - Position 5-117: office.com/setup 1(800)261-3851 Install Microsoft www.office.com/setup 2010,www.office.com/setup 2016,office.com Title - Phone number: 18002613851
@Seth not detecting, can you share the full text of the post? www.office.com is the official site...
A bit of creativity in using the official URL of the product, which obviously won't be blacklisted.
An earlier attempt to report phone numbers in post body produced way too many false positives. But I wonder if we could use the restrictive 1[- ]?(8\d{2})[- ]?\d{3}[- ]?\d{4} for post bodies, specifically for this sort of stuff.
I can't imagine many posts matching it. Especially now that we filter everything by owner rep.
@sally I am not good with python, but I notice a lot of spam posts use a theme where postbody.startWidth(post) == true, maybe you can make a check for this?
or title ending with ... in combination with body starting with ... seems to also used in spam posts
That is not uncommon for real questions. Some are short, where the whole thing just fits in the title. And some people can't think of a better title than copying the first sentence of the question. In particular, this is true for editors who come across a question titled "Please help me with this problem" and try to improve on it a bit. (I know I did this)
@Ferrybig Do you have a recent example like that? I'd like to take a look.
Yes, I misunderstood and thought ... referred to actual ... characters. Was thinking too much about ellipsis recently. :)
Well, the problem is that these are lazy titles: copy-pasting the beginning of a post is the easiest way to fill the title field. Spammers are usually lazy, obviously. But so are lots and lots of users. In particular on Math, a copy-pasted homework exercise is often titled by copy-pasting a chunk of text from the beginning.
At least read-only file system is better than I just keep writing until everything is messed up, like I had with my first PI fail, I thought I was hacked because I didn't got the password prompt at ssh
I'm almost tempted to add something to nocrash that remounts the filesystem, but that sounds like it'd get into low level crap I don't want to deal with.
Maybe another bot, like @Zephyr, should say "Smokey has left the building" if he's absent from the room. It just needs to be calibrated so that restarts don't trigger it...
@Sally I don't know if Shog answered, but we've (well, bluefeet) been doing a fair amount of work on flag handling tools. Currently that's a major pain point. (The flag count is above 1500 again.)