WTF Bites
-
These are probably both referencing something else I've never heard of before, aren't they?
-
So CSS allows you to transition properties... so if you go from width:50px to width:100px it does a nice transition between both.
Fantastic! Unless... you go from auto (the default value in most cases) to any value.
https://css-tricks.com/using-css-transitions-auto-dimensions/So... the biggest use case is not supported. You want to expand an input box or an image or anything? Not allowed. What the fuck?
According to the Mozilla Developer Network docs, auto values have been intentionally excluded from the CSS transitions spec. It looks like it's been requested by a few people, but when you think about it, it makes at least a little sense that it hasn't been included. The browser process that re-calculates the sizes and positions of all elements based on their content and the way they interact with each other (known as "reflow") is expensive. If you were to transition an element into a height of auto, the browser would have to perform a reflow for every stage of that animation, to determine how all the other elements should move. This couldn't be cached or calculated in a simple way, since it doesn't know the starting and/or ending values until the moment the transition happens.
Ooh, it's too hard. And yet, I can just take the calculated value, and set the initial value to that value and now it can transition just fine. It still has to reflow the other elements. So why not make it do that?
-
WTF Bite that I had NodeBBoobed and forgot about, that just now appeared
Sometimes, Youtube starts playing a video showing 1080p (Auto) but the video is 244p until you manually fix it
-
reflow is expensive and would have to be done for every stage of the animation
It has to be done for every stage of the animation anyway, doesn't it? So that the animation not only animates (e.g.) the width of the box, but also the content and/or other elements on the page
-
@levicki Right, but this animation would be 0.5 seconds long. It's pretty jarring to click on a small textbox and suddenly have it take up 10 lines if there's no transition.
And, because it's done through a proper API, it would theoretically be possible for you to disable them browser-wide anyway!
-
WTF Bite that I had NodeBBoobed and forgot about, that just now appeared
Sometimes, Youtube starts playing a video showing 1080p (Auto) but the video is 244p until you manually fix it
On Mobile I've set it to Manual 144p, yet it claims Auto 240p on the next video regardless.
What is the point of having a setting that only persists for a single video?
Fucking annoying. I set it there to save data fucktards, stop un-setting it for me!
-
@levicki Well, suppose you have a to-do list. So you want single-line inputs for "Do laundry" but you want to be able to attach long descriptions to items too just in case (maybe to copy-paste a few URLs).
What better interface than to have a single-line box, that expands to multiple lines as you type, then collapses back to a single line when it loses focus, so you can show the first line as a "title"?Besides, I'm learning coding, not design.
Minor related WTF: given the input
<h2 class="todo-list-title"><input type="text" class="bg-transparent"></h2>
(yes, an input as a title, it works pretty well)What do you think should be suggested there?
Apparently to Chrome that looks like a city field. Even though there's no other fields around for which it suggests any other parts of the address
-
@levicki Oh yes. In ME2 you can have the level load in a split second (even on most wooden PCs) if you replace the long "loading" video files. Except unlike the usual "skip intro" (another dumb shit 95% publishers could get rid of entirely), it must be at least 1 frame, otherwise Unreal engine will go ape and stop loading altogether.
@Tsaukpaetra, @Mason_Wheeler & other gamedevs - if you do any of that dumb shit in your productions, don't. Shit like that isn't inherently bad, but everything of that sort must be skippable (also pause-able).
-
@levicki said in WTF Bites:
@anonymous234 said in WTF Bites:
It's pretty jarring to click on a small textbox and suddenly have it take up 10 lines
Why would there be a small text box which needs that much resizing to be of any use in the first place?
I see this all the time in textboxes that would like a longer-than-two-words answer but don't need the page to be answered (i.e. "optional") and so don't need to take up extra space if not filled in.
What's that, do it yourself inflatable website?
It just reeks of design fail.
Have you seen mobile? You act so surprised, it's quite funny.
-
Status: feeling special.
-
@Applied-Mediocrity said in WTF Bites:
otherwise Unreal engine will go ape and stop loading altogether.
Is that what the fuck is going on?!?
We have an "interstitial map" that's essentially a black void because sometimes the main menu doesn't load and having it load the blank one first and then immediately load the main menu works more reliably!
@Applied-Mediocrity said in WTF Bites:
@Tsaukpaetra, @Mason_Wheeler & other gamedevs - if you do any of that dumb shit in your productions, don't. Shit like that isn't inherently bad, but everything of that sort must be skippable (also pause-able).
I consider it a feature that there's literally no intro videos for Hypatia. You're instantly dropped into the "main menu" area and can enter the game in seconds once you're past the welcome wizard.
Makes it nice when you crash and can instantly return.
-
@levicki said in WTF Bites:
Today at work:
: There are some problems installing updates, try rebooting
: Reboot
: HA! Gotcha! (enters reboot -> auto recovery -> recovery fail -> reboot loop)
: !@#!#%$@#$!@! (enters safe mode out of desperation after 15 reboots)
: Lalala (boots into safe mode, everything looks normal)
: Reboot
: Lalala (boots normally)
:
: There are some problems installing updates, try rebooting
: I have updated your computer. Pray I do not update it further.
-
@Applied-Mediocrity said in WTF Bites:
@levicki Oh yes. In ME2 you can have the level load in a split second (even on most wooden PCs) if you replace the long "loading" video files. Except unlike the usual "skip intro" (another dumb shit 95% publishers could get rid of entirely), it must be at least 1 frame, otherwise Unreal engine will go ape and stop loading altogether.
Reminds me of when I edited out the fucking EA video out of the C&C 3 game files. Not only was it useless waiting to watch that, loading it slowed down the game launch on my potato laptop, too.
-
Reminds me of when I edited out the fucking EA video out of the C&C 3 game files.
Challenge everything.
-
@levicki said in WTF Bites:
I mean we have big scrollable screens for fuck sake and you are saving how much space by animating a stupid input box?
No, we apparently have tiny high-resolution screens. Pay attention.
@levicki said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Have you seen mobile? You act so surprised, it's quite funny.
That's me being disgusted, not surprised.
Sorry, you make it look the same regardless. Should work on that.
-
@Zerosquare said in WTF Bites:
Reminds me of when I edited out the fucking EA video out of the C&C 3 game files.
Challenge everything.
: It's in the game!
-
@Tsaukpaetra said in WTF Bites:
Have you seen mobile?
Have you forgotten how big (and stinky) @levicki's is?
-
@HardwareGeek said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Have you seen mobile?
Have you forgotten how big (and stinky) @levicki's is?
Aww fuck, is that what that is? Shit, I was wondering....
-
Tetsuya Mizuguchi said in Rez:
Ages ago, life was born in the primitive sea.
Young life forms constantly evolved in order to survive.
Some prospered, some did not, all sorts of life ebbed and flowed like the tide.
In the quiet rhythm of the mother sea, life grew,
always seeking to survive and flourish.
Soon life began the advance towards land, opening new habitats.
A great prosperity came, as life conquered even the highest mountains.
Mass extinctions came wave after wave,
but empty niches always quickly refilled,
to once again prosper, grow and reproduce.
Someday the next great emigration will occur,
as we leave this existence looking for another.
The journey will begin anew.I hold within me
the memories of all that has passed.Who am I?
-
@Polygeekery said in WTF Bites:
A few days ago I was looking for information on how to build something that is not super mainstream. I find a hit on YouTube for a video that would help. Said video was (I think) Russian.
Now my YouTube feed is like 20-30% Russian.
Goddamnit YouTube. I was looking for ideas. The video was good enough for my purposes. I don't speak fucking Russian. Stop it you fucking retards.
-
@anonymous234 said in WTF Bites:
So I can't understand what kind of super fun experience they're getting, 3 minutes of watching
an aimbotother players shootforyou, thenget kicked outdie, join another game, repeatFTFM
-
@levicki said in WTF Bites:
I don't think writing
literally 5 lines of actual and rather simplecode toget what you wantcan be called codingSo what do you call it? Fucking spiders?
-
@Tsaukpaetra said in WTF Bites:
Have you seen mobile? You act so surprised, it's quite funny.
Personally, I think it's retarded to make the same UI for mobile and desktop. It was a really bad idea for the os, and it is a bad idea for the web.
-
@Tsaukpaetra said in WTF Bites:
Have you seen mobile? You act so surprised, it's quite funny.
Personally, I think it's retarded to make the same UI for mobile and desktop. It was a really bad idea for the os, and it is a bad idea for the web.
You're not wrong. Unfortunately, so many web devs don't hold that opinion...
-
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Have you seen mobile? You act so surprised, it's quite funny.
Personally, I think it's retarded to make the same UI for mobile and desktop. It was a really bad idea for the os, and it is a bad idea for the web.
You're not wrong. Unfortunately, so many web devs don't hold that opinion...
And even worse, manglement has got this stupid "Mobile first!" mantra, which in reality means "Mobile only!". In my current gig, we've built a 20+ page application with 440+ fields SPA where every single design choice is mobile
firstonly. Why would anyone sane ever fill out that monstrosity on mobile, where you have to keep a list of pretty much every financial detail of your life on hand...
Add to that UX people that change their minds every 3 days, so the poor web devs have to change things around every few weeks because the page isn't following the UX guidelines.I'm pretty happy being an archaic backend troll. The only thing anyone ever has anything to say about what I do is the PDFs I generate. And those I keep as simple as I possibly can.
-
-
@BernieTheBernie said in WTF Bites:
How true - Polish is likely the hardest to learn language in Europe.
I think Czech beats it by it's unique consonant, ř
-
@BernieTheBernie said in WTF Bites:
How true - Polish is likely the hardest to learn language in Europe.
I think Czech beats it by it's unique consonant, ř
How is that different from Polish "rz"?
Well, learning a new really odd consonant is one thing. Learning a grammar with a few thousand exceptions is an other thing...
-
@BernieTheBernie said in WTF Bites:
How is that different from Polish "rz"?
Most people pronounce “rz” as just “ż” or just modified as starting with “r”, though apparently (TIL) some do pronounce it the same as “ř”.
@BernieTheBernie said in WTF Bites:
Learning a grammar with a few thousand exceptions is an other thing...
Czech and Polish have quite similar grammar, with similar number of exceptions.
-
@levicki said in WTF Bites:
try plowing?
Plowing with cows is pretty easy, or so I've been told. Just aim straight and keep moving.
-
@BernieTheBernie said in WTF Bites:
How true - Polish is likely the hardest to learn language in Europe.
I think Czech beats it by it's unique consonant, ř
Sia's lesser known song, I Loath Czech Trills
-
@levicki Should I post some plowable cows in the NSFW thread? And/or plowable
oxenbulls?
-
@Applied-Mediocrity said in WTF Bites:
@Zerosquare said in WTF Bites:
Reminds me of when I edited out the fucking EA video out of the C&C 3 game files.
Challenge everything.
: It's in the game!
Seenagay!
-
@Gąska I've seen a gay too, but I didn't think it was worth mentioning.
-
@Zecc I'm from Poland, okay?
-
@Gąska I've seen a gay too, but I didn't think it was worth mentioning.
Gays are so 2015.
-
@Tsaukpaetra said in WTF Bites:
Fucking spiders?
NO!
"Let's do it like they do on the Discovery Channel!"
-
@levicki said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Plowing with cows is pretty easy, or so I've been told. Just aim straight and keep moving.
I meant the other kind of plowing, you know, with oxen.
I do enjoy plowing cows though.
Exploiting Dirty COWs, eh?
-
It's 2019. Why the fuck does every Python program STILL use
python
as interpreter instead of eitherpython2
orpython3
!?
-
@Tsaukpaetra said in WTF Bites:
Fucking spiders?
NO!
I found the article to be very interesting, the pictures were a nice touch.
Then again I am obviously biased.
-
@Tsaukpaetra said in WTF Bites:
Fucking spiders?
NO!
I found the article to be very interesting, the pictures were a nice touch.
Then again I am obviously biased.
I was being facetious.
Though the ads were stupid as fuck.
-
Add to that UX people that change their minds every 3 days
That's not just in webdev... I'm writing C++ for things we know are going to change. We hope it's just "tweak up a little"/"change the color" types of things. But the odds are better that it will be "change the entire look/feel - and we need it tomorrow".
-
Add to that UX people that change their minds every 3 days
That's not just in webdev... I'm writing C++ for things we know are going to change. We hope it's just "tweak up a little"/"change the color" types of things. But the odds are better that it will be "change the entire look/feel - and we need it tomorrow".
Yes, everything with a UI instead of an API will suffer from the same stupidity.
-
It's 2019. Why the fuck does every Python program STILL use
python
as interpreter instead of eitherpython2
orpython3
!?Because /usr/bin/python is just a symlink to whatever version you have installed, at least on Linux (mine is pointing to python2.7)
-
@TimeBandit said in WTF Bites:
It's 2019. Why the fuck does every Python program STILL use
python
as interpreter instead of eitherpython2
orpython3
!?Because /usr/bin/python is just a symlink to whatever version you have installed, at least on Linux (mine is pointing to python2.7)
The point is that each script could just as well pick the right interpreter so that it doesn't accidentally run with the wrong major version...
-
so that it doesn't accidentally run with the wrong major version...
All version are the wrong version
-
@TimeBandit said in WTF Bites:
(mine is pointing to python2.7)
Snap!
lrwxr-xr-x 1 root wheel 75B 8 Oct 19:41 /usr/bin/python -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
-
@TimeBandit said in WTF Bites:
It's 2019. Why the fuck does every Python program STILL use
python
as interpreter instead of eitherpython2
orpython3
!?Because /usr/bin/python is just a symlink to whatever version you have installed, at least on Linux (mine is pointing to python2.7)
And
python2
is a symlink to Python 2, andpython3
is a symlink to Python 3, and both of these have been standard for almost as long as Python 3 exists. If they all keep usingpython
- and they DO keep usingpython
- then either I cannot use any Python 2 programs on my machine or I cannot use any Python 3 programs on my machine. P2 programs have the excuse of legacy (a bullshit excuse that's been increasingly more bullshit each month, but an excuse nonetheless), but P3 programs don't even have that.Thankfully, Aptitude doesn't have any package intergrity checks, so hand-editing the file in
/usr/bin
worked like a charm. Side WTF: the shebang said/usr/bin/python
, not/usr/bin/env python
- so just setting up the environment right wouldn't work.Edit: That's the worst part about Python 2 deprecation. For over a decade everyone lived happily, being purposely ignorant of the existence of Python 3, and everything worked. But now everyone is in sudden rush to move to Python 3, and each team is at a varying stage of finishing it. So it's guaranteed the Python version will be wrong for at least some important programs for at least the next 12 months.
-
so just setting up the environment right wouldn't work
Do it the Debian way