UI Bites
-
-
@Zerosquare said in UI Bites:
If I ever get a citizenship in another country, I intend to only have a first name in that citizenship. Just to be an asshole to shitty developers.
...and regret it immediately, as your life turns to hell because countless public and private services refuse to accept your name.
()Nah, that just means that I'd not have to deal with them. š And I'd always have my Swedish nationality to fall back on.
-
@LaoC I remember dealing with AAD in parts of the world where only having a single name was common. AAD fails at this but not as hard as the HRIS system wired up to itā¦
If I ever get a citizenship in another country, I intend to only have a first name in that citizenship. Just to be an asshole to shitty developers.
You should also make sure that the name is legally all lower case and misspelt relative to some much more common name. See just how many get it wrongā¦
With at least one ' in there as well.
-
@LaoC I remember dealing with AAD in parts of the world where only having a single name was common. AAD fails at this but not as hard as the HRIS system wired up to itā¦
If I ever get a citizenship in another country, I intend to only have a first name in that citizenship. Just to be an asshole to shitty developers.
You should also make sure that the name is legally all lower case and misspelt relative to some much more common name. See just how many get it wrongā¦
Fuck no. My wife's first name is the Latina spelling of a very common one and her last name a weird spelling of a European one. Misspelled visa documents, bank cards that don't match the passport (make sure you keep your CC of the card application to prove it's their fault or they'll try to charge you for the fixed card), "no, Ma'am, we don't have your ticket in the system"āthe possibilities for fun are endless.
-
And thatās before you have the French who do things like āMichel MICHELā to indicate that the second name is their surname because itās not uncommon to have a surname that could also be a given name.
In my first admin job at univerity in Germany I once took literally 15 minutes to find out what the user name of a Chinese student ("first and last letter of first name plust last name") should be. He didn't speak enough of anything but Chinese to explain, and while he had it romanized alright I didn't know if he'd kept it in the Chinese/Bavarian "Last First" form or converted it to big endian already.
Names are hard and solveable in most places with a single ānameā box. Though this does lead to other drama as shown but honestly for the purposes of āshowing initials in Teamsā, just pick the first two capital letters and go with it.
If the script has capital letters to begin with. It's a pretty weird concept tbh.
-
@Carnage which is most of them.
The number of systems that insist in having first name/last name is obscene.
I feel sorry for the folks who got āNot Assignedā, āNullā or ā- as their āfirst nameā as different systems couldnāt handle the idea of a user with only a āsurnameā. The usual compromise was to enter the same name twice.
The reality is never that the developers suffer, itās that the poor users are expected to just get on with it.
Similarly users who expect to put in their middle names are inevitably fucked over in the opposite direction (middle names are sometimes supported but often as a second class citizen).
And thatās before you have the French who do things like āMichel MICHELā to indicate that the second name is their surname because itās not uncommon to have a surname that could also be a given name.
Names are hard and solveable in most places with a single ānameā box. Though this does lead to other drama as shown but honestly for the purposes of āshowing initials in Teamsā, just pick the first two capital letters and go with it.
This is precisely why, in my re-design of the registration software, I'm collapsing the
name_first
andname_last
fields into justname_display
. We literally never use the names independently ever and always concatenate them together, so what is the fucking point?
-
@Tsaukpaetra said in UI Bites:
@Carnage which is most of them.
The number of systems that insist in having first name/last name is obscene.
I feel sorry for the folks who got āNot Assignedā, āNullā or ā- as their āfirst nameā as different systems couldnāt handle the idea of a user with only a āsurnameā. The usual compromise was to enter the same name twice.
The reality is never that the developers suffer, itās that the poor users are expected to just get on with it.
Similarly users who expect to put in their middle names are inevitably fucked over in the opposite direction (middle names are sometimes supported but often as a second class citizen).
And thatās before you have the French who do things like āMichel MICHELā to indicate that the second name is their surname because itās not uncommon to have a surname that could also be a given name.
Names are hard and solveable in most places with a single ānameā box. Though this does lead to other drama as shown but honestly for the purposes of āshowing initials in Teamsā, just pick the first two capital letters and go with it.
This is precisely why, in my re-design of the registration software, I'm collapsing the
name_first
andname_last
fields into justname_display
. We literally never use the names independently ever and always concatenate them together, so what is the fucking point?Users might want to search for people at some point. Or see them sorted in a consistent manner.
But, I mean, there's a reason we call them lusers.
-
: But we need to address customers by their first name! It makes us look friendly!
-
@Zerosquare Tends to be even worse in Dutch, since we still have separate formal and informal modes of address.
Whenever possible I either omit my first name, or just enter initials.
-
or just enter initials
luckily Flemish is much more informal in that regard and doesn't care for such things
-
@Luhmann But if you remove the initials, don't the next letters become new initials?
-
In Dutch it is acceptable to enter Mr. Luhmann N. in a name field in Flemish we don't take to this kind of frivolity ... but we also don't use middle names ... but both last and first names can have multiple parts sometimes with a - or not ... also Dutch/Flemish uses different capital rules for last names consistent of multiple parts ... it's a 'poepen' kind of thing I guess
-
it's a 'poepen' kind of thing I guess
https://www.answers.com/Q/What_was_Edgar_Allan_Poe's_pen_name
-
@boomzilla said in UI Bites:
@Tsaukpaetra said in UI Bites:
@Carnage which is most of them.
The number of systems that insist in having first name/last name is obscene.
I feel sorry for the folks who got āNot Assignedā, āNullā or ā- as their āfirst nameā as different systems couldnāt handle the idea of a user with only a āsurnameā. The usual compromise was to enter the same name twice.
The reality is never that the developers suffer, itās that the poor users are expected to just get on with it.
Similarly users who expect to put in their middle names are inevitably fucked over in the opposite direction (middle names are sometimes supported but often as a second class citizen).
And thatās before you have the French who do things like āMichel MICHELā to indicate that the second name is their surname because itās not uncommon to have a surname that could also be a given name.
Names are hard and solveable in most places with a single ānameā box. Though this does lead to other drama as shown but honestly for the purposes of āshowing initials in Teamsā, just pick the first two capital letters and go with it.
This is precisely why, in my re-design of the registration software, I'm collapsing the
name_first
andname_last
fields into justname_display
. We literally never use the names independently ever and always concatenate them together, so what is the fucking point?Users might want to search for people at some point.
Searching impact is negligible in the combined form.
Or see them sorted in a consistent manner.
Eh. We're not making a phonebook. you find them or you don't, nobody cares that they're lined up in the right order so the extra confoundation is irrelevant to this application.
-
@loopback0 said in UI Bites:
@boomzilla said in UI Bites:
MS Teams uses circles with your initials as a default avatar. Domain accounts tend to be displayed as, "LastName, FirstName MiddleInitial." In its wisdom, Teams interprets this as:
LM
...instead of what you'd expect:
LF
...or better yet:
FL
Ours does it as LF.
Now it's decided to use FL
-
@loopback0 said in UI Bites:
@loopback0 said in UI Bites:
@boomzilla said in UI Bites:
MS Teams uses circles with your initials as a default avatar. Domain accounts tend to be displayed as, "LastName, FirstName MiddleInitial." In its wisdom, Teams interprets this as:
LM
...instead of what you'd expect:
LF
...or better yet:
FL
Ours does it as LF.
Now it's decided to use FL
-
-
Make sure you use a high Derps Per Image setting for wall-size printouts.
So which aspect of my video display is it that the client wasn't satisfied with?
-
ļ §: sOmEtHiNg WeNt WrOnG!
If it wasn't for the 7000% inflation I'd say fuck it and retire from this industry to become a bee keeper.
-
So which aspect of my video display is it that the client wasn't satisfied with?
My guess, using VLC.
-
@topspin
Afraid that the reduced income scale would really sting?
-
Good Jorb, Teams.
-
Download app, log in to Microsoft account, literally the first thing after logging in:
(Note the cut off text)
These morons are a trillion dollar company.
-
@topspin it probably fits fine in English and all the other languages are simply doing it wrong.
Itās been the case forever that non-English gets a second-class level of support from software in general, and RTL a distant third-class level of support.
-
@topspin it probably fits fine in English and all the other languages are simply doing it wrong.
Itās been the case forever that non-English gets a second-class level of support from software in general, and RTL a distant third-class level of support.
Yeah, we know that Nadella's first order of business was to fire the whole QA department, so them not noticing a glaring problem as the first thing after installation is not unexpected.
But it's not like the technology to correctly word-wrap hasn't been invented yet. Also, every single other app manages to ask this question just fine without problems, since they just use the native pop-up window that actually works. But that wouldn't be reinventing everything in fucking electron.
-
we know that Nadella's first order of business was to fire the whole QA department
Yeah, because now they sell the products to the QA department
-
Download app, log in to Microsoft account, literally the first thing after logging in:
(Note the cut off text)
Well, how else would you handle "Blindenschrift" in so little space.
-
it probably fits fine in English and all the other languages are simply doing it wrong.
actually, those "..." should be just 2 letters: "ck".
How did they manage to use an ellipsis here?
That's the question.
Also M$ won't be able to answer it.
-
@BernieTheBernie Probably the same thinking behind this:
-
ļ §: sOmEtHiNg WeNt WrOnG!
If it wasn't for the 7000% inflation I'd say fuck it and retire from this industry to become a bee keeper.
It's a reference to the old error 500 page they've had 10 years ago or so. The one with highly trained monkeys. It was so funny and original at the time that I'm willing to give Google a pass on all error-monkey imagery as a grandfather exception.
Edit: found a screenshot.
-
@BernieTheBernie said in UI Bites:
actually, those "..." should be just 2 letters: "ck".
How did they manage to use an ellipsis here?The ellipsisizing is autofuckic. There is a CSS style that does that for texts that don't fit and it's probably applied to the title, because they don't want it wrapped for some wrong reason. And for some other wrong reason they failed to make the box scale itself properly.
-
(Note the cut off text)
It's in German (I assume). This is expected behavior.
-
@BernieTheBernie said in UI Bites:
actually, those "..." should be just 2 letters: "ck".
How did they manage to use an ellipsis here?(actually, probably just 1)
-
It's a reference to the old error 500 page they've had 10 years ago or so.
Given the level of support Google offers, I'm not sure they don't employ actual monkeys trained to push buttons.
-
@BernieTheBernie said in UI Bites:
it probably fits fine in English and all the other languages are simply doing it wrong.
actually, those "..." should be just 2 letters: "ck".
How did they manage to use an ellipsis here?
That's the question.I know how! I've done it myself.
if (str.length() > MAX_LEN) str = str.substring(0, MAX_LEN) + "\u2026";
-
@GÄ ska except for variable width fonts. But same idea.
-
This post is deleted!
-
The comedy of these is from ye olden times when we only had
...
instead of a real ellipsis and you'd say have a limit of 25 characters, feed it a 26 character string and end up with a 28 character result.Good times.
-
@Arantor I had to explain to my product owner that deciding when and how to truncate text so it doesn't clip (when it can't wrap for other reasons) is hard. Especially on a variable width element nested under a bunch of other elements from the best place to know the width. And with variable size fonts and zooms.
-
@Benjamin-Hall good times!
I remember having to do this on IE6 many years ago from a totally dynamic (as in literally everything was rendered from JavaScript) way and ended up writing the text to a div of a fixed size and rewriting it over and over taking a character off the end until it fit.
-
ended up writing the text to a div of a fixed size and rewriting it over and over taking a character off the end until it fit.
Programming confessions thread is
-
@Benjamin-Hall good times!
I remember having to do this on IE6 many years ago from a totally dynamic (as in literally everything was rendered from JavaScript) way and ended up writing the text to a div of a fixed size and rewriting it over and over taking a character off the end until it fit.
The fun thing is that is oh so close to the correct approach, but still so far.
If you had all the necessary information available, like the engine has, you'd just use the font metrics to calculate what the most letters is you can get into the available space, one by one. Same idea, orders of magnitude faster/better (/harder/stronger).
-
@topspin Work is never over!
-
except for variable width fonts
Yes, they make things quite a bit more complicated as you need access to the font rendering engine to measure things (this isn't a problem BTW; measuring text in a specific font is one of their fundamental services). The real problem is that you can't just go back one character at a time until things fit because you can have multiple characters per glyph.
-
If you had all the necessary information available, like the engine has, you'd just use the font metrics to calculate what the most letters is you can get into the available space, one by one.
You have to handle combining characters too.
-
except for variable width fonts
Yes, they make things quite a bit more complicated as you need access to the font rendering engine to measure things (this isn't a problem BTW; measuring text in a specific font is one of their fundamental services). The real problem is that you can't just go back one character at a time until things fit because you can have multiple characters per glyph.
\X
is your friend, at least if you have another friend who's a decent regex engine:$ perl -CS -Mutf8 -E'for("ąŗąŗµą»ą»ąŗ«ąŗąŗ·ą»ąŗ", "NguĢoĢĢi") { say for /\X/g; say "" }' ąŗąŗµą» ą» ąŗ« ąŗąŗ·ą» ąŗ N g uĢ oĢĢ i
-
\X
is your friend, at least if you have another friend who's a decent regex engine:Data, is that you?
-
@LaoC note however, that Perl is no-one's friend. It plots against you even now.
-
@topspin Work is never over!
Harder (to debug), better (for job security) , faster (to fail), stronger (to wack people with) ?
-
@LaoC note however, that Perl is no-one's friend. It plots against you even now.
Ever since it was cast before the warthogs it has planned its revenue...
Edit: revenge, even.