Earlier quoted context omitted.
How could such an account have been created?
I asked somebody who used to work there, and the answer I got was that there are a bunch of accounts from back before validation was as tight as it is now. Which seems reasonable to me. At-replies were not something that Twitter started with, but instead were community-driven with software support added later: https://blog.twitter.com/official/en_us/a/2008/how-replies-w... It's a good reminder that it's always easier…
"@" on Twitter
111–120 of 143 posts
Re: "@" on Twitter
#112Reminds me of some artists who included a script tag in their book title so that when the book got listed on online shops it would make the page spawn a JavaScript alert()
Re: "@" on Twitter
#113How big is twitter’s engineering department? Their mobile website doesn’t even load the content of the tweet. Yesterday it was throwing an error that the api was rate limited. For their own site! They’ve been systematically destroying their own foundation by alienating the developer community for years and they can’t even get their own product to work reliably.
Mobile Twitter is maybe the single most useless website I’ve ever had to use lol. Clicking on a link to a tweet has 1/20 chance of ever actually loading the tweet. All other occurrences are evenly split between loading nothing except the top bar and calling it a day, and throwing an error message. Reloading the directly or using the reload button they provide will usually result in the rate limiting message. I don’t…
Nearly impossible to test properly (or was), breaks the whole html model, results in bugs just like this one.
Re: "@" on Twitter
#114Perhaps we should go back to Usenet and IRC?
Re: "@" on Twitter
#115In the very early days of Google, searching for $@ or $* or some other shell-sensitive character combos produced strange results. I never did push it to the point of security exploitation.
Re: "@" on Twitter
#116Earlier quoted context omitted.
Classic! We named our guild in EQ "NULL", as a joke. People would comment that we had a problem when they saw us running around with " " running over our head. It bit us on the ass when someone went to Sony's EQ con one year, and they literally couldn't print out their badge because "your guild name is NULL? Really?"
> they literally couldn't print out their badge I still don't quite get how this doesn't work. Why are they handling "NULL" as a special case? What's coercing "NULL" into null?
Re: "@" on Twitter
#117Earlier quoted context omitted.
That sounds like a pretty PHP-specific bug. Downvoters: most programming languages don’t silently convert strings (i.e., usernames) to array indices. Even Python doesn’t do this. While this particular bug probably wouldn’t be possible in most other languages, I’m only commenting because it’s rare and amusing to see bugs that are so language specific. I’m not making a generic “lol PHP” joke.
Python doesn’t do any implicit coercion (apart from ints and floats etc), right?
class Foo:
def __getitem__(self, x):
return x
i = iter(Foo())
print(next(i))
print(next(i))
That works because any object that provides __getitem__ "implements the iterable protocol."[1] I bring up __getitem__ because people familiar with Java are scratching their heads, "not only did you not declare any interfaces, this is just a convention, but there's also an __iter__ method. Huh?"But interfaces are just one way to declare a type. The question is, did it convert it to a new type?
Well, what type was it before? If you want to talk about LSP[0], you're a bit stuck here since you can't prove anything about a method in python. (And here, we declared its type, and we said nothing about it being iterable or a sequence.) You have to run it because you don't know that a. Foo has __iter__ or __getitem__, b. that they accept the arguments you're going to pass, c. let alone that they're designed to, d. that the object won't simply delete them halfway through.
All that iter() is going to do is look for those methods and make assumptions that if you wrote __getitem__ that you meant it. At which point maybe LSP works, after all, you'll prove that it has that property by running the code and fixing it if it breaks.
But... python nevertheless will nevertheless construct this proxy to use your class based on inspection, which seems an awful lot like coercion to me.
[0]: Quoth Wikipedia: Let 𝜙(𝑥) be a property provable about objects 𝑥 of type T. Then 𝜙(𝑦) should be true for objects 𝑦 of type S where S is a subtype of T.
Re: "@" on Twitter
#118Earlier quoted context omitted.
> they literally couldn't print out their badge I still don't quite get how this doesn't work. Why are they handling "NULL" as a special case? What's coercing "NULL" into null?
It was due to the way they exported the data. They used a SQL statement, and if you weren’t in a guild then the SQL would produce NULL. That output was then used to generate PDF badges, and it tried to do some filtering for NULL guilds. The person writing that script clearly did not anticipate there actually being a guild named NULL.
Re: "@" on Twitter
#119Earlier quoted context omitted.
Possibly a difference in implementation of unicode between validation and persistence/use. Validates successfully due to one or more "valid" unicode characters -> translated to zero characters due to stripping of invalid unicode character at some point after validation.
Maybe related to MySQL's 3-byte "utf8" charset which doesn't actually support unicode properly? (you are supposed to use "utf8mb4" nowadays though a lot of material still refers to "utf8")
Re: "@" on Twitter
#120Earlier quoted context omitted.
Facebook had this bug as far as accepting group requests very early on, maybe around 2010. Early enough that groups were limited to your college. I wrote a script to accept invitations to every group ID from 1 to 10000. It even added me to groups that didn't exist yet, presumably just adding my ID and the group ID to a table. So when someone created a group to rant about me being in all their groups, I was in it and,…
> So when someone created a group to rant about me being in all their groups, I was in it and, as the first member, an admin. fucking hilarity