:wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
-
Bot testing is
-
@topspin said in How can this be so wrong??? (AKA the Discopocalypse thread):
are those created on demand?
I believe that's why they exist. Rather than having static images served, they generated them on demand within Discourse which used too many resources so they fixed it with a CDN. A CDN that's now on VERSION FOUR.
edit: of course the topic got deleted.
https://meta.discourse.org/t/optimizing-letter-avatar-rendering/33082
-
@topspin said in How can this be so wrong??? (AKA the Discopocalypse thread):
@Vixen are those created on demand?
Filed under: we need a new
tag cloudletter CDN attackI plan to write a script to, erm, help them map out the entire space of possible color and character permutations. To, uh, prime their cache.
There might be a few they missed, since they apparently support Eastern character sets.
Filed under: I'm so helpful!
-
@error
Tune in next week for Jeff Does DMCA!
-
@Vixen said in How can this be so wrong??? (AKA the Discopocalypse thread):
documentation......
That exists??!@?@@?!!!11?!
-
@Vixen said in How can this be so wrong??? (AKA the Discopocalypse thread):
... huh. the CDN doesn't handle
'
or!
... does it handle unicode?it does.... poo.
hmm..... i'll need to experiment to figure out a way to fix this.....
Apparently needs to be URLencoded? But apostrophe doesn't work... unless it's full-width
-
@Vixen said in How can this be so wrong??? (AKA the Discopocalypse thread):
avatars.discourse.org/v4/
emphasis mine
-
@Tsaukpaetra said in How can this be so wrong??? (AKA the Discopocalypse thread):
But apostrophe doesn't work... unless it's full-width
502 Ok!
-
@HardwareGeek said in How can this be so wrong??? (AKA the Discopocalypse thread):
@Tsaukpaetra said in How can this be so wrong??? (AKA the Discopocalypse thread):
But apostrophe doesn't work... unless it's full-width
502 Ok!
I almost want to try to register with a username that starts with an apostrophe...
-
@error said in How can this be so wrong??? (AKA the Discopocalypse thread):
@topspin said in How can this be so wrong??? (AKA the Discopocalypse thread):
@Vixen are those created on demand?
Filed under: we need a new
tag cloudletter CDN attackI plan to write a script to, erm, help them map out the entire space of possible color and character permutations. To, uh, prime their cache.
There might be a few they missed, since they apparently support Eastern character sets.
Filed under: I'm so helpful!
https://jsfiddle.net/u1y2d9mf/8/
Help join the search!
It picks a random offset so we won't all be searching the same range!
Filed under: Help put the D in DDoS!
-
Well, it's surprisingly fast. I doubt it's even caching them.
I am disappoint, Makes a pretty picture, though.
-
@error Nothing beyond the BMP? I am disappoint.
-
@HardwareGeek said in How can this be so wrong??? (AKA the Discopocalypse thread):
@error Nothing beyond the BMP? I am disappoint.
Only because JS and UTF16 and
-
@error Aw, I want to fill the cache (if there is one) with Babylonian Cuneiform and Mycenaean Linear B.
-
@loopback0 said in How can this be so wrong??? (AKA the Discopocalypse thread):
@error said in How can this be so wrong??? (AKA the Discopocalypse thread):
Does this need to be an error bot command?
Probably not.
that just increases the chances of making it to production
-
@error said in How can this be so wrong??? (AKA the Discopocalypse thread):
@error_bot gif uwu --limit 3000
@error_bot replied:
[gif with Andre 3000]
-
@loopback0 said in How can this be so wrong??? (AKA the Discopocalypse thread):
Bot testing is
Didn't you hear? Every thread is @error_bot testing thread.
-
@loopback0 said in How can this be so wrong??? (AKA the Discopocalypse thread):
@topspin said in How can this be so wrong??? (AKA the Discopocalypse thread):
are those created on demand?
I believe that's why they exist. Rather than having static images served, they generated them on demand within Discourse which used too many resources so they fixed it with a CDN. A CDN that's now on VERSION FOUR.
edit: of course the topic got deleted.
https://meta.discourse.org/t/optimizing-letter-avatar-rendering/33082
Yeah, I've read the story (in this very thread, probably) before, just fuzzy on the details.
Because, you know, creating them once upon user registration and saving them as their avatar would make them exactly the same as custom avatars and remove a crazy special case. Can't have that.
-
@topspin said in How can this be so wrong??? (AKA the Discopocalypse thread):
Because, you know, creating them once upon user registration and saving them as their avatar would make them exactly the same as custom avatars and remove a crazy special case. Can't have that.
Or just do what NodeBB does...
-
@loopback0 said in How can this be so wrong??? (AKA the Discopocalypse thread):
@topspin said in How can this be so wrong??? (AKA the Discopocalypse thread):
Because, you know, creating them once upon user registration and saving them as their avatar would make them exactly the same as custom avatars and remove a crazy special case. Can't have that.
Or just do what NodeBB does...
That works, too. But still creates a special case, which is observable by not being able to do, e.g., :@levicki:.
-
@topspin Another special case happened recently, when something changed (I'd say in NodeBB but maybe it was due to an update of my browser?) and now the letter-avatars appear with the letter a bit smaller than before, probably because the font is different. Not a huge difference, but noticeable.
But yeah, I've ranted several times in the past about the retardedness of not generating the images once for all (upon account creation). That would make code simpler, less error prone and more efficient, and we certainly can't have that, can we?
-
@error said in How can this be so wrong??? (AKA the Discopocalypse thread):
@Vixen said in How can this be so wrong??? (AKA the Discopocalypse thread):
(function() { function color () { return Math.floor(16777216+Math.random()*16777216).toString(16).substring(1,7); } var txt = document.querySelector('textarea.write'); txt.value = txt.value.replace(/./g, function(char) { return '<img src="https://avatars.discourse.org/v4/letter/' + encodeURIComponent(char) + '/' + color() + '/24.png" />'; }); })();
... huh. the CDN doesn't handle
'
or!
... does it handle unicode?it does.... poo.
hmm..... i'll need to experiment to figure out a way to fix this.....
Does this need to be an error bot command?
To ask the question is to answer it.
-
No Egyptian hieroglyphs in the Discourse CDN
-
@topspin said in How can this be so wrong??? (AKA the Discopocalypse thread):
That works, too. But still creates a special case, which is observable by not being able to do, e.g., :@levicki:.
Sure but that's a custom thing and could maybe also be adapted to deal with it in the same way.
-
@loopback0 said in How can this be so wrong??? (AKA the Discopocalypse thread):
@topspin said in How can this be so wrong??? (AKA the Discopocalypse thread):
That works, too. But still creates a special case, which is observable by not being able to do, e.g., :@levicki:.
Sure but that's a custom thing and could maybe also be adapted to deal with it in the same way.
The :@levicki: thing is a bug and should be easily removed.
Excuse me. I mean @levicki is a bug and should be easily removed.
-
@Tsaukpaetra said in How can this be so wrong??? (AKA the Discopocalypse thread):
Now if only I could steal enough time to implement my intra-topic position tracking and alleviate the likes-storm people know me by...
So there's
twothree kinds of bookmark.- Whenever you enter a thread, it highlights the post that's been linked to with a blue box shadow, and a little purple in the upper right corner. By default, links to topics are treated as links to your most recently read post; only links that specify an explicit post index or post ID override this. The blue box shadow fades out after 15 seconds over 5 seconds. The color of the shadow and fade time are both configurable in CSS (
.posts > li
and.posts > li.highlight
), and the delay until fade can be overridden in JS by monkeypatching thenavigator
module. The information is also available over web sockets if you want to have a userscript investigate further. - In the menu for every post, there's an entry labeled "Bookmark ". If you click it, it will turn into "Bookmark ℕ" (where ℕ is usually 1), and the post will be available from the page in top navigation. The information is also available over web sockets if you want to have a userscript investigate further.
- If you view the forums through some other means, they likely already have a separate mechanism for keeping track of read/unread status for individual posts.
Why are either of these insufficient?
- Whenever you enter a thread, it highlights the post that's been linked to with a blue box shadow, and a little purple in the upper right corner. By default, links to topics are treated as links to your most recently read post; only links that specify an explicit post index or post ID override this. The blue box shadow fades out after 15 seconds over 5 seconds. The color of the shadow and fade time are both configurable in CSS (
-
@TwelveBaud said in How can this be so wrong??? (AKA the Discopocalypse thread):
Why are either of these insufficient?
Because they are insufficient, duh! ‍
-
@loopback0 said in How can this be so wrong??? (AKA the Discopocalypse thread):
@topspin said in How can this be so wrong??? (AKA the Discopocalypse thread):
That works, too. But still creates a special case, which is observable by not being able to do, e.g., :@levicki:.
Sure but that's a custom thing and could maybe also be adapted to deal with it in the same way.
Of course, piling a hack on a workaround on a custom thing is a much better idea than having a proper design from start.
-
@Vixen said in How can this be so wrong??? (AKA the Discopocalypse thread):
@error_bot said in How can this be so wrong??? (AKA the Discopocalypse thread):
........ what?
just......... how the hell did you get that from my query?!
I think you mean, " How can this be so wrong???"
-
@Mason_Wheeler
At least @error_bot isn't written in RoR
-
@izzion No, even worse, it's written in JavaScript!
-
@Mason_Wheeler
Technically it’s in TypeScript, which is much better because it has type safety
-
@izzion said in How can this be so wrong??? (AKA the Discopocalypse thread):
Technically it’s in TypeScript, which is much better because it has type safety
Also, women find it sexy.
Filed under: TypeStyle/LifeScript
-
-
-
@JBert said in How can this be so wrong??? (AKA the Discopocalypse thread):
@ben_lubar Um....
Yes?
Slowly backs away
-
@ben_lubar Is this the post you wanted to link to?
Because, you know, in makes more sense to read top to bottom.
Also, why the heck does clicking "Show more" not change the text to "Show less"? It's confusing.
-
@Zecc are you saying that "jeff atwood was a mistake" isn't what I meant to post a link to in this thread?
-
Should it be "jeff atwood is a mistake"?
-
@El_Heffe said in How can this be so wrong??? (AKA the Discopocalypse thread):
Should it be "jeff atwood is a mistake"?
[insert image of broken condom here]
-
After linking meta.d for a joke, the tab of it I had open got a number (new thread?). I saw a bug thread that piqued my interest so I clicked in:
I can interact with the slider but there's no content other than the title. That's good stuff!
-
@boomzilla said in How can this be so wrong??? (AKA the Discopocalypse thread):
After linking meta.d for a joke, the tab of it I had open got a number (new thread?). I saw a bug thread that piqued my interest so I clicked in:
I can interact with the slider but there's no content other than the title. That's good stuff!
Stop reading mod-only content, you snoop. Geez!
-
@topspin said in How can this be so wrong??? (AKA the Discopocalypse thread):
@boomzilla said in How can this be so wrong??? (AKA the Discopocalypse thread):
After linking meta.d for a joke, the tab of it I had open got a number (new thread?). I saw a bug thread that piqued my interest so I clicked in:
I can interact with the slider but there's no content other than the title. That's good stuff!
Stop reading mod-only content, you snoop. Geez!
LOL. Went back to look at the web console:
Also:
-
Clicking around only makes things worse. And then, while hiding my bookmarks bar for the screenshot, I noticed something else in the menu:
Coronavirus doesn't sound so bad now.
-
@boomzilla said in How can this be so wrong??? (AKA the Discopocalypse thread):
Clicking around only makes things worse. And then, while hiding my bookmarks bar for the screenshot, I noticed something else in the menu:
@error_bot giphy DO IT!
(no way this will deliver anything close to suitable...)
Fake edit: is this the regular browser menu? Can a web page now add something into the browser menu? That sounds like a huge ...
-
Giphy said in https://giphy.com/gifs/go-team-you-can-do-it-yoJC2K6rCzwNY2EngA :
-
@remi said in How can this be so wrong??? (AKA the Discopocalypse thread):
(no way this will deliver anything close to suitable...)
Meh, not what I had in mind, but not that bad actually.
-
-
@dkf Manually picking the correct meme is no fun. Much funnier to spend (at least) twice as much time ordering a mindless drone to do it with vague and ambiguous instructions, then complain that they didn't do it right.
At least that's what I learnt by watching managers.
-
@remi said in How can this be so wrong??? (AKA the Discopocalypse thread):
Manually picking the correct meme is no fun.