Imports (Was: {brace yourselves} the import is coming {Spoiler Alert: Not all of it} [i.e. blakeyrat was not utterly wrong for the first time ever] Filed under: append-only titles.)
-
-
http://what.thedailywtf.com/t/brace-yourselves-the-import-is-coming-spoiler-alert-not-all-of-it-aka-blakeyrat-was-not-utterly-wrong-for-the-first-time-ever-filed-under-append-only-titles-btw-tonight-means-last-friday/9329/647
Please append this into the OP:
The next scheduled import pass is March 27-28 starting at 10PM EDT.
That's some nice appending you did there, mods.
-
-
Good for me. I'll be putting my kids to bed.
-
```sql
SELECT u.username, count() c, log(3.0, count())
FROM post_timings pt
JOIN users u on u.id=pt.user_id
GROUP BY u.username
HAVING count() >= pow(3, 11) AND count() < pow(3, 12)
ORDER BY count(*) DESC
LIMIT 25<img src="/uploads/default/18037/0feebd151a1f567a.png" width="401" height="327"> <tt>... EXPLAIN?</tt>
-
What?
How could ...
-
I assume Discourse marked them read individually or something stupid like that.
-
Is it not part of the import?
-
Not in any code that I've touched.
-
Watchdog bot?
-
-
... EXPLAIN?
If I'm going to guess (and I don't know why I am, but I am), it's considering any posts they've made (that have been imported) as read, and of the 3 you can see there, they have over 3^5 posts imported.
-
Is it not assumed by Dischorse that when you create a post you've read it too? So it counts as a read post?
edit 2: Didn't even mean to reply to @ChaosTheEternal. D'oh.
-
Given the query for the badge, I have to assume when you make a post, it automatically puts in a
post_timings
record for you, and I would also have to assume the import process "makes" posts the same way.
-
Yeah, I assume that's how it works too.
-
That makes sense. Carry on then.
-
-
Those are self-diagnostics. If they're stuck somewhere, they can't send it.
A watchdog could be a separate bot that posts to a PM in fixed intervals, and raises the alarm if one of the monitored bots doesn't respond in a fixed time interval.
-
hmm.... interesting....
-
If that didn't create a permanent database record for every bot, that might be a good idea. If only there was a chat feature...
-
A watchdog could be a separate bot that posts to a PM in fixed intervals, and raises the alarm if one of the monitored bots doesn't respond in a fixed time interval.
It'd be much better to have something running on the bot host that monitors the services/dæmons, and sends an e-mail when one is down for more than a specified amount of time; saves adding loads of meaningless PMs to Discourse.
-
saves adding loads of meaningless PMs to Discourse.
Like the current system?
Like you suggested, just monitoring the bots from the server they run on, and sending emails out from there is the best approach IMO.
-
True. Has as an advantage that the watchdog itself isn't running on sockbot code, and thus isn't as likely to go down with all the bots.
An advantage of a discourse-based approach would be you also get notified if the message bus is hung but the event loop is still running. I believe @accalia has had bugs like that as well.
-
An advantage of a discourse-based approach would be you also get notified if the message bus is hung but the event loop is still running.
that's the bug i want to find yes....
-
But I suspect that anything that generates notifications by necessity also generates DB records, and I don't think discourse deletes anything at all...
-
So, this slow as molasses performance right now are just regular cooties?
-
Looks like it
-
Yeah. Back to blaming regular old Dischorse now.
-
What percentage of the posts have been imported? Are there any script changes being made to fix some of the things found in the last round?
-
The "things" found in the last round are "Redis crapped itself and there's nothing we can do about it other than try again".
-
All this newfangled Redis, and Rails and Docker stuff is really awesome guise! All it needs is a whole VM for itself and it still craps out doing shit even PHP could handle!
Filed under: Please vacate the grassy area in my property
-
I could probably write a program in 20 lines of Go that runs faster than this forum and does more things correctly.
-
Oh come on, don't set such a low bar for yourself. I'm sure you can do better.
-
I was thinking of things like the underscores in links being converted... Maybe some of the quote handling. Dunno if it's really worth it, though.
-
Does it take 20 lines of Go to output "Hello World"?
Filed Under: Yeah, I know, it's been a while since the last white screen of death but meh
-
-
Aw come on, thats not even close to the promised 20 lines of code.
Filed Under: 7 Lines only... you are obviously not paid by the line!
-
Urgh, fine:
package main import "fmt" /*Placeholder lines for LOC + o + + o + o + + + + o o + o -_-_-_-_-_-_-_,------, o _-_-_-_-_-_-_-| /\_/\ -_-_-_-_-_-_-~|__( ^ .^) + + _-_-_-_-_-_-_-"" "" + o o + o + + o o o o + o + end of placeholder lines*/ func main() { fmt.Println("Hello, World") }
-
You didn't count 13 lines required to make it work on Linux hardware as well.
-
Well, it's fixed for new imported posts, but I'm not sure how I should go about fixing it in already-imported posts.
-
Go is pretty good with cross-compiling.
Example:
$ go build hello.go $ file hello hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped $ GOOS=windows GOARCH=386 go build hello.go $ file hello.exe hello.exe: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows
It doesn't need separate compilers for different OSes and it comes with 4 different architectures supported.
-
-
Huh? I knew you were making a joke. I made a statement vaguely related to the joke.
-
I knew you were making a joke.
I assumed so.
I made a statement vaguely related to the joke.
And I completely give up on figuring out which ones are trolls and which ones are not.
-
huh?
-
She either joined or was imported when this forum was first starting, but she never posted on the Discoforum.
-
Oh, I was wondering if there was any significance to her account in particular.
-
Oh, I was wondering if there was any significance to her account in particular.
No, I was just amused by the dates.
-
frist
-