« first day (1458 days earlier)      last day (2355 days later) » 

12:18 AM
@ArtOfCode How exactly does will_paginate work?
 
@quartata TL;DR: if collection.count > current_page * page_size; display_pagination_controls; end
 
Paging is hard.
 
too right
Had to redo it for SCOT's API a few days ago - so many bugs
like... this looks correct, right?
ctr > per_page * (params[:page].to_i || 1)
 
decently so
 
but no, let's play find the bug. We actually had this one in metasmoke as well, which took us a week or two to fix
same bug, only this time I remembered what happened last time
TL;DR: if params[:page] is nil, nil.to_i == 0, which is truthy, so you get per_page * 0
 
12:31 AM
Wondered about that. Need params[:page]&.to_i, right?
 
nah, just move the brackets around - current code is ctr > per_page * (params[:page] || '1').to_i
SNO could work, I guess... didn't think of it at the time
yeah, it does
 
Might not have existed at that point. Dunno
 
not when we had it in metasmoke, I don't think
it's ruby 2.3, IIRC
in fact I know it is, I wrote the SO documentation on it... RIP
 
!!/unnotify- askubuntu.com
 
@HenryWHHackv2.1 2 arguments expected
 
12:39 AM
!!/unnotify- 11540 askubuntu.com
 
@HenryWHHackv2.1 That configuration doesn't exist.
 
!!/unnotify- 11540 security.stackexchange.com
 
@HenryWHHackv2.1 That configuration doesn't exist.
 
Oh but I thought.
 
it does somewhere, just not on the current instance :)
 
12:43 AM
!!/allnotificationsites 11540
 
@HenryWHHackv2.1 You won't get notified for any sites in that room.
 
OK that's what I want.
 
they'll come back to haunt you, don't worry :)
 
[ SmokeDetector | MS ] Repeating words in answer: Android PackageStats gives negative Values by Ethan Webster on stackoverflow.com
tpu- by Tetsuya Yamamoto
 
Time to drop out. (I was planning on going on a all day flagging spree yesterday I fell asleep.)
 
1:13 AM
tpu- by Tetsuya Yamamoto
 
1:25 AM
@ArtOfCode Is that just a view thing then?
 
@quartata pagination? Not entirely, but close enough
 
I mean where the code controlling it goes
I'm not concerned about implementation just how Metasmoke uses it
 
@quartata 50/50 controller and view
 
So I need extra logic when retrieving the data presumably
It's not a lazy collection so I'm guessing you have to do a LIMIT in the controller
 
would help to have context of what you're trying to do
and with what tools and libraries
 
1:32 AM
This is purely in the context of Metasmoke
I'm trying to make pending blacklist requests in Metasmoke
When accepted by someone with privileges Metasmoke will send a request to add it to Blackhole
Additionally I also want it to display the current blacklist along with any relevant domain tags -- this is why I wanted to know how to paginate
Because the blacklist is huge and loading the TP count and domain tags for each is slow I want it to be done page by page
 
I can probably help with SQL optimization if you wanna make a WIP PR. As for pagination, take a look how MS does it already. TL;DR: collection.paginate(**opts) in the controller and will_paginate collection, **opts in the view
 
That's what I was looking for, thanks
I saw will_paginate in the view but didn't know where else
Honestly I'm not entirely sure if I want MS to store a copy of the blacklist locally
It would only need it for like displaying it
 
I wouldn't object to it being in the MS DB
If MS is going to display it at all, it needs to be in the MS DB. If it's not, there may be better solutions.
I believe @Andy was building something
 
im building this around the "demo" I made
Which is actually pretty close to functional once you take out sqlite
My main problem is that it feels redundant to have MS store the full blacklist
I think maybe I'll have a little JS webapp that fetches and resolves the full blacklist
Store it in local storage for next time
Metasmoke should still be in charge of pending blacklist requests though
To replace our current PR system
 
2:08 AM
[ SmokeDetector | MS ] Blacklisted website in answer: Star Trek Discovery (Episode 9) Klingon Cloaking Device Explanation by Hoa Đồng Thị on scifi.SE (@Mithrandir)
tpu- by J F
 
@ArtOfCode I'll have something later tonight or tomorrow. I was pulled into a production issue at work and that messed with my plans for finalizing the write up for this tonight
 
[ SmokeDetector | MS ] Offensive answer detected: Importance of Double Helix DNA Structure by kareem on biology.SE
tpu- by Tetsuya Yamamoto
 
2:27 AM
sd - k
 
2:42 AM
!!/report astronomy.stackexchange.com/q/23524/2153
 
@HDE226868 Post 1: That does not look like a valid post URL.
 
tpu- by Tetsuya Yamamoto
 
That www.spaintommy.com seems to keep popping up.
 
[ SmokeDetector | MS ] Bad keyword with email in answer: Facebook Messenger: How to send multiple messages with nodejs by James on stackoverflow.com
tpu- by Tetsuya Yamamoto
 
 
1 hour later…
A J
3:48 AM
@SmokeDetector k
 
4:07 AM
Restart: API quota is 17763.
[ SmokeDetector | MS ] URL in title, bad keyword in body, bad keyword in title, blacklisted website in body, blacklisted website in title, +3 more: bettercoloncleansingguide.com/natural-springs-garcinia-cambogia/ by yedsamgkds on meta.SE
tpu- by Tetsuya Yamamoto
 
4:24 AM
although I probably should throw in a command line argument for the blacklist name
eh oh well
 
!!/test spaintommy.com
 
> Would not be caught for title, body, and username.
 
!!/watch spaintommy\.com
 
@NobodyNada I hit an error while trying to run that command; run !!/errorlogs for details.
 
!!/errorlogs
 
4:28 AM
  File "/usr/local/lib/python3.4/dist-packages/sh.py", line 774, in __init__
    self.wait()

  File "/usr/local/lib/python3.4/dist-packages/sh.py", line 792, in wait
    self.handle_command_exit_code(exit_code)

  File "/usr/local/lib/python3.4/dist-packages/sh.py", line 815, in handle_command_exit_code
    raise exc


sh.ErrorReturnCode_1:

  RAN: /usr/bin/git checkout deploy

  STDOUT:
watched_keywords.txt: needs merge


  STDERR:
error: you need to resolve your current index first
2017-11-14 04:32:06.695278 UTC
 
!!/gitstatus
 
On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 217 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)

You have unmerged paths.
(fix conflicts and run "git commit")

Changes to be committed:

modified: bad_keywords.txt
modified: blacklisted_usernames.txt
modified: blacklisted_websites.txt
modified: gitmanager.py

Unmerged paths:
(use "git add <file>..." to mark resolution)

both modified: watched_keywords.txt
[ SmokeDetector | MS ] URL in title, bad keyword in body, bad pattern in URL body, blacklisted username, blacklisted website in body, +3 more: www.drozien.com/testoland-poland-review/ by pherdjuri on apple.SE
 
@SmokeDetector del
 
@NobodyNada Messages from SmokeDetector in Charcoal HQ are generally kept as records. If you really need to delete a message, please use sd delete-force. See this note on message deletion for more details.
 
!!/location
 
4:28 AM
@NobodyNada Henders/EC2
tpu- by NobodyNada
 
@Henders something's up with your Git
 
teward/Solar Flare received failover signal.
 
!!/standby Henders
 
Restart: API quota is 19999.
 
!!/pull
 
!!/watch spaintommy\.com
 
@NobodyNada Added spaintommy\.com to watchlist
 
@HDE226868 Added it to the watchlist, thanks!
 
Restart: API quota is 19998.
 
@Andy if you could show me how to lambda-ify this that would be great, docs are tough to understand and you seem to get it better than I do
 
4:31 AM
CI on 033ca50 succeeded. Message contains 'autopull', pulling...
Restart: API quota is 19993.
 
@NobodyNada failed Solar Flare over for you
 
@NobodyNada Thanks!
 
@quartata ? I thought I did that
 
er maybe we both did
I pressed the button after I saw the merge conflict
 
[ SmokeDetector | MS ] Bad keyword in body, blacklisted website in body, pattern-matching website in body: Hormone Evaluating - Weighing Yourself by riettaheryl on graphicdesign.SE
 
4:34 AM
@quartata I did the same, so I guess that's what happened :)
 
tpu- by NobodyNada
 
it takes a minute to take effect
weird we picked the same one
 
[ SmokeDetector | MS ] URL-only title, bad keyword in body, bad keyword in title, blacklisted website in body, blacklisted website in title, +4 more: nutrasunnaturalgreencleanseblog.com/magnetique-clear-skin/ by GregorioTraver on askubuntu.com
tpu- by NobodyNada
tpu- by Tetsuya Yamamoto
[ SmokeDetector | MS ] URL in title, bad keyword in body, bad keyword in title, blacklisted website in body, blacklisted website in title, +3 more: bettercoloncleansingguide.com/natural-life-garcinia-cambogia/ by user263746 on apple.SE
tpu- by NobodyNada
 
I think I need to table all the other things I'm working on right now and really crack down on unit tests for the chat backport. It's actualy starting to inconvenience me that it hasnt been merged yet since its sooooo useful for testing
I've stuck my fingers in a few too many pies here
 
[ SmokeDetector | MS ] Bad keyword in body, bad keyword in title, blacklisted website in body, link at end of body, pattern-matching website in body: Greenlyte Forskolin wellness dietary supplement by shellyjash on askubuntu.com
[ SmokeDetector | MS ] Pattern-matching website in body: That's how to prevent problems with d-bal max by d-balmax on graphicdesign.SE
tpu- by Tetsuya Yamamoto
[ SmokeDetector | MS ] URL-only title, bad keyword in body, bad keyword in title, blacklisted website in body, blacklisted website in title, +3 more: www.revivalantiagingcream.com/cellistaderm-cream/ by user759676 on askubuntu.com
tpu- by Tetsuya Yamamoto
tpu- by Tetsuya Yamamoto
 
tpu- by Tetsuya Yamamoto
 
@SmokeDetector dang I predicted it \o/
 
@SurajRao Obviously a spam seed... and OT too.
 
!!/location
 
@paper1111 teward/Solar Flare
tpu- by Tetsuya Yamamoto
[ SmokeDetector | MS ] URL in title, bad NS for domain in body, bad NS for domain in title, bad keyword in body, bad keyword in title, +4 more: supplement4help.com/proshred-testo/ by user263748 on apple.SE
tpu- by suraj
 
@SmokeDetector I don't think I've ever seen "u'r" before
They're too lazy to type out "you" but not lazy enough to drop the punctuation
 
5:24 AM
@SmokeDetector k
 
[ SmokeDetector | MS ] Bad keyword in body, blacklisted website in body, link following arrow in body: level out your skin tone and light up your skin by Dannard on graphicdesign.SE
 
@SmokeDetector k
 
A J
@NobodyNada Some people will type 'ur' during conversation, so I have to see the context to determine if it is You're or Your.
@SmokeDetector k
@SmokeDetector Gone before I could click the submit button.
 
@AJ Messages from SmokeDetector in Charcoal HQ are generally kept as records. If you really need to delete a message, please use sd delete-force. See this note on message deletion for more details.
 
A J
And it made me realize that gone is a command too.
!!/blame
 
5:27 AM
@AJ It's bummi's fault.
 
@AJ yeah, it kind of sucks that it tries to parse a command out of any longer string
 
[ SmokeDetector | MS ] URL-only title, blacklisted website in body, blacklisted website in title, link at end of body: vidmate.zone/eu-chapei-mc-leo-da-baixada-mp3-musica-baixar/ by athrynivera on askubuntu.com
 
@SmokeDetector k
 
[ SmokeDetector | MS ] Offensive answer detected: Simple python hangman game by Stephen McFaggotton on stackoverflow.com
 
sd 2k
 
5:32 AM
[ SmokeDetector | MS ] Blacklisted website in answer: How to deal with someone ignoring meeting room etiquette by user75928 on workplace.SE
[ SmokeDetector | MS ] Bad keyword in body, blacklisted website in body, pattern-matching website in body: Everest Male Formula - Easy to use as it comes in pill form by christinaking on apple.SE
 
sd 2k
 
A J
sd 2k
@SmokeDetector Name is offensive too.
 
@AJ flagged it for mod attention
!!/blacklist-website (?:zone|band)/[^/]*-mp3-musica-baixar
 
@tripleee Blacklisted (?:zone|band)/[^/]*-mp3-musica-baixar
 
@bummi SOCVR material
 
5:37 AM
[ SmokeDetector | MS ] URL-only title, bad NS for domain in body, bad NS for domain in title, bad keyword in body, bad keyword in title, +6 more: healthpurelives.com/proshred-testo/ by erzqwnqjw on askubuntu.com
tpu- by Tetsuya Yamamoto
CI on b33fbf3 succeeded. Message contains 'autopull', pulling...
 
[ SmokeDetector ] SmokeDetector started at [rev b33fbf3 (SmokeDetector: Auto blacklist of (?:zone|band)/[^/]-mp3-musica-baixar by tripleee --autopull*)](//github.com/Charcoal-SE/SmokeDetector/commit/b33fbf3) (running on teward/Solar Flare)
Restart: API quota is 19566.
 
@tripleee merci ... I'm not sure if the link should be watched, that's why I posted here
 
!!/blame
 
@DJMcMayhem It's DJMcMayhem's fault.
 
5:40 AM
!!/coffee
 
@DJMcMayhem brews coffee for @DJMcMayhem
 
@TetsuyaYamamoto brews a cup of green tea for @TetsuyaYamamoto
 
!!/lick
 
@DJMcMayhem licks ice cream cone
 
5:41 AM
@bummi we can watch it if you like, it's really informal
!!/watch mammut-group\.com
 
@tripleee Added mammut-group\.com to watchlist
 
thx
 
[ SmokeDetector | MS ] Bad keyword in body, bad keyword in title, blacklisted website in body, link at end of body: Beard Czar raview? by mariawbourne on askubuntu.com
tpu- by suraj
CI on 77e89b1 succeeded. Message contains 'autopull', pulling...
Restart: API quota is 19538.
 
!!/blacklist-keyword male\W?formula
 
@tripleee Blacklisted male\W?formula
[ SmokeDetector | MS ] Potentially bad keyword in body: Seo optimize Test in site by mammut group on stackoverflow.com
CI on dce5e96 succeeded. Message contains 'autopull', pulling...
Restart: API quota is 19523.
[ SmokeDetector | MS ] Bad NS for domain in body, bad NS for domain in title, bad keyword in body, bad keyword in title, blacklisted website in body, +1 more: cluesforhealth.com/beorganics-testosterone-booster/ ‎ by Patrown on apple.SE
tpu- by Tetsuya Yamamoto
 
5:45 AM
@SmokeDetector pending (nonsense) edit got approved
!!/watch beorganics
 
@tripleee Added beorganics to watchlist
[ SmokeDetector | MS ] Bad keyword in body, bad keyword in title, bad keyword in username, blacklisted website in body, link at end of body, +1 more: Geneticore Boost: Does it have any Side Effects? by Geneticore Boost on superuser.com
CI on b8728ac succeeded. Message contains 'autopull', pulling...
[ SmokeDetector ] SmokeDetector started at rev b8728ac (SmokeDetector: Auto watch of beorganics by tripleee --autopull) (running on teward/Solar Flare)
Restart: API quota is 19480.
[ SmokeDetector | MS ] Blacklisted website in answer: Difference between Java Bean and Enterprise Java Beans? by pranit patil on stackoverflow.com
tpu- by Tetsuya Yamamoto
[ SmokeDetector | MS ] Username similar to website in answer: Image saving and loading from disk for permanent use in android by LVS on stackoverflow.com
fp- by Tetsuya Yamamoto
[ SmokeDetector | MS ] URL in title, bad keyword in body, blacklisted website in body, blacklisted website in title, pattern-matching website in body, +1 more: platinumcleanserinfo.com/sans-age/ by Ninteni on graphicdesign.SE
tpu- by Tetsuya Yamamoto
 
6:08 AM
@SmokeDetector Is that lvs.png a website or image file?
 
@SmokeDetector huh? there is no web site in the answer
!!/watch sans\W?age
 
@tripleee Added sans\W?age to watchlist
CI on 1ce4673 succeeded. Message contains 'autopull', pulling...
[ SmokeDetector ] SmokeDetector started at rev 1ce4673 (SmokeDetector: Auto watch of sans\W?age by tripleee --autopull) (running on teward/Solar Flare)
Restart: API quota is 19362.
[ SmokeDetector | MS ] URL in title, link at end of body, potentially bad keyword in body, potentially bad keyword in title: mp3juice.live/tiempo-c-tangana-mp3-cancion-descargar/ by Silvia Errera on drupal.SE
tpu- by Tetsuya Yamamoto
 
!!/blacklist-website mp3juice\.live
 
@tripleee Blacklisted mp3juice\.live
CI on a5be677 succeeded. Message contains 'autopull', pulling...
 
A J
Which is the parent site for this chatroom?
 
6:16 AM
Restart: API quota is 19331.
[ SmokeDetector | MS ] Potentially bad keyword in answer: Ethernet doesn't work after using Ubuntu 16.04 in dual boot by Christine Grant on superuser.com
 
@SmokeDetector why
 
@TetsuyaYamamoto Body - Position 602-619: errorcodespro.com, Position 711-728: errorcodespro.com
 
!!/blacklist-website {live|zone|band)/[^/]+-mp3-cancion-descargar
 
@tripleee An invalid pattern was provided, not blacklisting.
 
@AJ It is shown if I try host=stackexchange.com.
 
6:20 AM
@SmokeDetector f
!!/blacklist-website (?:live|zone|band)/[^/]+-mp3-cancion-descargar
 
@tripleee Blacklisted (?:live|zone|band)/[^/]+-mp3-cancion-descargar
 
@tripleee mhmm ... at least very peculiar if you compare the two answers on that question
 
CI on 28d3c77 succeeded. Message contains 'autopull', pulling...
[ SmokeDetector ] SmokeDetector started at [rev 28d3c77 (SmokeDetector: Auto blacklist of (?:live|zone|band)/[^/]+-mp3-cancion-descargar by tripleee --autopull)](//github.com/Charcoal-SE/SmokeDetector/commit/28d3c77) (running on teward/Solar Flare)
Restart: API quota is 19294.
 
@bummi then the new one is the plagiarizer
 
6:25 AM
@tripleee Use a custom mod flag (write as plagiarism) or spam/rude?
 
naa- by Tetsuya Yamamoto
[ SmokeDetector | MS ] Bad keyword in body, bad keyword in title, blacklisted website in body, blacklisted website in title, link at end of body, +3 more: garciniacambogialean.com/ultra-muscle-testo by Steptach65 on askubuntu.com
tpu- by Tetsuya Yamamoto
[ SmokeDetector | MS ] Bad keyword in body, blacklisted website in body, link at end of body, pattern-matching website in body, repeated URL at end of long post: Conclusion Numerous are chasing by Wern ded on drupal.SE
tpu- by Tetsuya Yamamoto
[ SmokeDetector | MS ] URL in title, bad NS for domain in body, bad NS for domain in title, bad keyword in body, bad keyword in title, +5 more: healthpurelives.com/proshred-testo/ by user263758 on apple.SE
tpu- by Tetsuya Yamamoto
 
@TetsuyaYamamoto spam flag should be sufficient, don't you think?
 
@tripleee Oh, I noticed link at the end... looks promoting something.
 
[ SmokeDetector | MS ] Bad NS for domain in body, bad keyword in body, bad keyword in title, blacklisted website in body, link at end of body, +2 more: T Core Plus is works? by hilulasda on drupal.SE
 
@SmokeDetector k
 
6:38 AM
tpu- by Tetsuya Yamamoto
[ SmokeDetector | MS ] URL in title, bad NS for domain in body, bad NS for domain in title, bad keyword in body, bad keyword in title, +5 more: healthpurelives.com/proshred-testo/ by anna holtze on astronomy.SE
 
> Would not be caught as an answer.
 
!!/blacklist-keyword ultra\W?muscle(?:\W?testo)?
 
@tripleee Blacklisted ultra\W?muscle(?:\W?testo)?
CI on ac68cb0 succeeded. Message contains 'autopull', pulling...
Restart: API quota is 19118.
[ SmokeDetector | MS ] URL-only title, bad keyword in body, bad keyword in title, blacklisted website in body, blacklisted website in title, +1 more: advisorwellness.com/greenlyte-forskolin/ by AllanBarns on askubuntu.com
tpu- by Glorfindel
[ SmokeDetector | MS ] Bad keyword in body, blacklisted website in body, link at end of body, potentially bad keyword in body, potentially bad keyword in title: Roots revive Mumybear Products by Misty J. Floyd on askubuntu.com
tpu- by Glorfindel
[ SmokeDetector | MS ] Bad keyword in body, bad keyword in title, blacklisted website in body, link at end of body, pattern-matching website in body, +1 more: It can help repair your muscle strands speedier, by Hised19 on superuser.com
tpu- by Tetsuya Yamamoto
 
!!/blacklist-keyword roots\W?revive
 
6:51 AM
@tripleee Blacklisted roots\W?revive
 
[ SmokeDetector | MS ] Manually reported question: How to market salesforce users? by Leena on salesforce.SE
CI on c67af7d succeeded. Message contains 'autopull', pulling...
Restart: API quota is 19040.
 
@SmokeDetector k
 
6:54 AM
@SmokeDetector k
!!/watch sterling\W?marketing\W?solutions
 
@tripleee Added sterling\W?marketing\W?solutions to watchlist
CI on 480545d succeeded. Message contains 'autopull', pulling...
Restart: API quota is 19008.
 
!!/watch acewtrading\.com
 
@tripleee Added acewtrading\.com to watchlist
CI on 40d896b succeeded. Message contains 'autopull', pulling...
Restart: API quota is 18994.
[ SmokeDetector | MS ] Potentially bad keyword in answer: How can a B2B business contact small business owners directly? by user51050 on startups.SE
tpu- by Tetsuya Yamamoto
 

« first day (1458 days earlier)      last day (2355 days later) »