WTF Bites
-
@pie_flavor said in WTF Bites:
I dunno. I personally like the color scheme.
But you like
Text alignment. It's hard.
Yeah, and the scrolling thing is just freaky. I kind of see what's happening - scroll the right a little, then the left, then back to the right. That's just WRONG!!!
-
@dcon Just thought of how I would review this if asked:
I want to run away and hide in a cave where there's no electricity if this is how web design is progressing.
-
@tsaukpaetra said in WTF Bites:
@tsaukpaetra said in WTF Bites:
Worked fine
How so? For me, it hijacks my scrolling and uses it to scroll the left and right sides at different times so that I never really understand what is happening.
Edit: Sorry, NFC how to make the video fit in the post right...
-
@tsaukpaetra You are missing out on the perverted scrolling:
-
-
@ben_lubar There are few worse things to run over plain HTTP than Docker registries. Unless you want Equifax or Yahoo-level pownage, put real certs on those things.
-
Powershell trivia time!
Given the following code:
function Test() { git pull; } function Main() { Test; return 42; } $var = Main;
What value does
$var
have?Already up-to-date.
42
Yes, newline and everything. In Powershell, which apparently had a single utter sadist in the entire team of awesome coders,
return $value
is no different than$value; return
and the line$var = Main;
does not mean "execute Main and assign its return value to$var
" like in a sane programming language - instead it means "execute Main and from now on capture all output that doesn't get caught, then assign the entire thing to$var
".
-
@maciejasjmj said in WTF Bites:
Powershell trivia time!
Given the following code:
function Test() { git pull; } function Main() { Test; return 42; } $var = Main;
What value does
$var
have?Already up-to-date.
42
Yes, newline and everything. In Powershell, which apparently had a single utter sadist in the entire team of awesome coders,
return $value
is no different than$value; return
and the line$var = Main;
does not mean "execute Main and assign its return value to$var
" like in a sane programming language - instead it means "execute Main and from now on capture all output that doesn't get caught, then assign the entire thing to$var
".It's a shell scripting language. Capturing output is generally how they operate, no?
-
@maciejasjmj said in WTF Bites:
Powershell trivia time!
Given the following code:
function Test() { git pull; } function Main() { Test; return 42; } $var = Main;
What value does
$var
have?Already up-to-date.
42
Yes, newline and everything. In Powershell, which apparently had a single utter sadist in the entire team of awesome coders,
return $value
is no different than$value; return
and the line$var = Main;
does not mean "execute Main and assign its return value to$var
" like in a sane programming language - instead it means "execute Main and from now on capture all output that doesn't get caught, then assign the entire thing to$var
".Seems cromulent to me. If you didn't want the output of
git pull
you should have swallowed it.
-
For me, it hijacks my scrolling and uses it to scroll the left and right sides at different times so that I never really understand what is happening.
WOMM (except the Schrödinger's scrollbar thing). But what the heck does any of that have to do with a place to store your files? I don't care what they think they've evolved into; as far as I am concerned, they're a place to store/share files, period.
all the bad aspects of modern web design
Including 10s of seconds to load on a slow connection.
-
Try scrolling down this page:
Also, if you manage to drag the scrollbar, it does an excellent job of desynchronizing with your mouse...
Worked fine for me.
Didn't look fine, but it worked fine.
-
@maciejasjmj said in WTF Bites:
Powershell trivia time!
Given the following code:
function Test() { git pull; } function Main() { Test; return 42; } $var = Main;
What value does
$var
have?Already up-to-date.
42
Yes, newline and everything. In Powershell, which apparently had a single utter sadist in the entire team of awesome coders,
return $value
is no different than$value; return
and the line$var = Main;
does not mean "execute Main and assign its return value to$var
" like in a sane programming language - instead it means "execute Main and from now on capture all output that doesn't get caught, then assign the entire thing to$var
".My guess would be "stores a reference to Main in $var", which if you then called
var()
(or whatever the notation is) would give you that output. How did you evaluate the value of $var?
-
@hardwaregeek said in WTF Bites:
WOMM
Worked fine for me.
The funny part is that whoever made the page scroll the way it did for me thinks your machines aren't working properly. Someone actually wanted the scrolling to be terrible and confusing.
-
@hardwaregeek said in WTF Bites:
WOMM
Worked fine for me.
The funny part is that whoever made the page scroll the way it did for me thinks your machines aren't working properly. Someone actually wanted the scrolling to be terrible and confusing.
Why do you think that?
-
@maciejasjmj said in WTF Bites:
Powershell trivia time!
Given the following code:
function Test() { git pull; } function Main() { Test; return 42; } $var = Main;
What value does
$var
have?Already up-to-date.
42
Yes, newline and everything. In Powershell, which apparently had a single utter sadist in the entire team of awesome coders,
return $value
is no different than$value; return
and the line$var = Main;
does not mean "execute Main and assign its return value to$var
" like in a sane programming language - instead it means "execute Main and from now on capture all output that doesn't get caught, then assign the entire thing to$var
".My guess would be "stores a reference to Main in $var", which if you then called
var()
(or whatever the notation is) would give you that output. How did you evaluate the value of $var?Main
is how you would call the function namedMain
. No parentheses since it's supposed to behave like a shell command. If you want a function pointer, you callGet-Command
.
-
I stopped experimenting after I crashed W10's Explorer.
That's risky business. A few times I ended up with directories I could only delete from CMD (right click did nothing). And I wasn't even trying to be edgy, just copied some stuff from Mac.
-
-
@tsaukpaetra said in WTF Bites:
Seems cromulent to me. If you didn't want the output of git pull you should have swallowed it.
Then why the fuck would you provide a
return $value
syntax when it's wrong and does not do what it's supposed to do in any other language?Bash is a piece of shit, but it solves it better for two reasons:
a) You need either backticks or
$(...)
to capture output, so the syntax makes it evident that you're not doing a return value assignment
b) The code as above, withreturn $val
and the output being assigned will never actually work as intended - return doesn't spill the value into output.Sure, scripting languages do that, but Powershell is supposed to be this new sleek object-oriented goodness, so why the fuck not have normal return value semantics? And a scripting language should leverage its loose rules to Do What I Mean - and it's pretty obvious that if I type
return $value
I want$value
to be returned, not$value
and random shit before it. And if I type a baregit pull;
then it should also be obvious I'm not doing anything with the output and want it to go straight to the console - if I wanted it returned, I'd justreturn git pull;
or something like that.As it is now, it's insidious because it will work sometimes - a function like:
function f() { #do a lot of things return 42; }
will return just 42 provided that no command before writes to output, and then someone's just going to figure "oh hey, I should do a
git pull
beforehand!" and break the entire script because the output spills.What it should do is either return 42 no matter what, or balk at the
return $value
syntax withIt's PowerShell, you cunt! We don't do returns like normal people!
. Instead it lets you fire at your foot and you'll either miss it or shoot it.And that's not even to mention Git writing to both stdout and stderr, on top of Powershell also playing loose with Write-Host vs Write-Output.
-
I also tried dragging the scrollbar downwards
You have a scrollbar? Luxury!
I don't have a scrollbarWait, that completely white strip (for me) on the right is a scrollbar !Scrolling is implemented by changing translateY on elements. Really??
No wonder PgUp/PgDn didn't work. But wait, now it does?!
-
@zecc The scrollbar wasn't always there. It would appear and disappear as I was scrolling through the document. I just tried grabbing it at a point where it was visible, although using it didn't work properly on any occasion.
-
@maciejasjmj hey man, I'm not Microsoft, I am not responsible for their shenanigans.
Here, have a quick Google result to snack on for a second.
Edit: and another article:
https://manski.net/2013/03/powershell-functions-for-the-uninitiated-c-programmer/
Functions Return Everything That Isn’t Captured.
-
@tsaukpaetra said in WTF Bites:
@maciejasjmj said in WTF Bites:
Powershell trivia time!
Given the following code:
function Test() { git pull; } function Main() { Test; return 42; } $var = Main;
What value does
$var
have?Already up-to-date.
42
Yes, newline and everything. In Powershell, which apparently had a single utter sadist in the entire team of awesome coders,
return $value
is no different than$value; return
and the line$var = Main;
does not mean "execute Main and assign its return value to$var
" like in a sane programming language - instead it means "execute Main and from now on capture all output that doesn't get caught, then assign the entire thing to$var
".Seems cromulent to me. If you didn't want the output of
git pull
you should have swallowed it.Only if
return
is semantically identical toecho
in that context, which is a pretty big .
-
@masonwheeler said in In other news today...:
Want to read this article? Have an unrelated auto-playing video!
-
Bloody flat interfaces; I got this in Chrome:
You want to find out more information about the problem? Clicking on the obvious hyperlink 'Learn More' would be logical but that takes you to a webpage about certificates in general. You actually click on 'NET::ERR_CERT_REVOKED' which is totally obvious and doesn't just look like static textEdit: 'ADVANCED' which at least looks kinda like it might be clickable doesn't have any technical details under it.
-
@anotherusername said in WTF Bites:
@tsaukpaetra said in WTF Bites:
@maciejasjmj said in WTF Bites:
Powershell trivia time!
Given the following code:
function Test() { git pull; } function Main() { Test; return 42; } $var = Main;
What value does
$var
have?Already up-to-date.
42
Yes, newline and everything. In Powershell, which apparently had a single utter sadist in the entire team of awesome coders,
return $value
is no different than$value; return
and the line$var = Main;
does not mean "execute Main and assign its return value to$var
" like in a sane programming language - instead it means "execute Main and from now on capture all output that doesn't get caught, then assign the entire thing to$var
".Seems cromulent to me. If you didn't want the output of
git pull
you should have swallowed it.Only if
return
is semantically identical toecho
in that context, which is a pretty big .It is!
-
@cursorkeys said in WTF Bites:
Bloody flat interfaces; I got this in Chrome:
You want to find out more information about the problem? Clicking on the obvious hyperlink 'Learn More' would be logical but that takes you to a webpage about certificates in general. You actually click on 'NET::ERR_CERT_REVOKED' which is totally obvious and doesn't just look like static textEdit: 'ADVANCED' which at least looks kinda like it might be clickable doesn't have any technical details under it.
Yeah, I'm really saddened how much effort Chrome has put into hiding security details from all but developers...
-
@cursorkeys clean, slick, smooth, minimal, simple, modern, material, flat, acrylic, PVC, glass UI is the future
-
-
@cartman82 Here's the thing: Unity is an extremely powerful and easy to use game engine and framework, with many useful tools, a lot of pre-existing scripts, and a shitton of free or inexpensive assets. You can, with minimal effort and three or four hours' time, create a simple game without writing a single line of your own code.
As has been said before, this is, for the most part, a good thing. It means that a newcomer can jump into game development with both feet, and in the hands of a competent dev team, it can have a huge multiplier effect on what they can accomplish. Some of the best indie games of recent years were made in Unity, as have some major commercial offerings in the mobile area, such as Hearthstone.
However, this is something of a double-edged sword. The reason Unity has such a shitty reputation among gamers is because anyone asshole looking for a free ride can throw together a game that looks reasonably polished in screenshots but plays like crap, or even re-badge an existing asset pack and flip it on Steam for the price of the pack (assuming they didn't just pirate it outright) and the Steam Direct upload, like an army of others have done (even with the same asset pack). The resulting flood of bullshit has dragged the names of both Unity and Steam through the mud.
The fact that these "shite hawks" are often incredibly defensive of their 'creations' just makes it worse. While some are just incompetent and over-sensitive, or just batshit crazy, others are outright con artists who see criticism as a someone trying to wise up the sheep before they've been shorn.
So, the Law of Unintended Consequences is in full effect. Unity made a great tool that facilitates making games quickly, Steam makes reaching customers as easy as putting down $100; surprise, suddenly every grifter in the world is a game developer.
So the question I think you need to ask is, can he write C# programs without using Unity? Not necessarily a game, but just some simple finger exercise type program. If he can't, then pry that copy of Unity out of his hands and get him to a non-gaming-related coding course, pronto.
-
-
@tsaukpaetra said in WTF Bites:
Is that the third time this has been posted here?
Why, yes; yes, it is.
-
@cursorkeys clean, slick, smooth
, minimalcriminal, simple, modern, material, flat, acrylic, PVC, glass UI is the futureStupid mental autocomplete.
-
@zecc If only it were...
-
@tsaukpaetra said in WTF Bites:
@anotherusername said in WTF Bites:
@tsaukpaetra said in WTF Bites:
@maciejasjmj said in WTF Bites:
Powershell trivia time!
Given the following code:
function Test() { git pull; } function Main() { Test; return 42; } $var = Main;
What value does
$var
have?Already up-to-date.
42
Yes, newline and everything. In Powershell, which apparently had a single utter sadist in the entire team of awesome coders,
return $value
is no different than$value; return
and the line$var = Main;
does not mean "execute Main and assign its return value to$var
" like in a sane programming language - instead it means "execute Main and from now on capture all output that doesn't get caught, then assign the entire thing to$var
".Seems cromulent to me. If you didn't want the output of
git pull
you should have swallowed it.Only if
return
is semantically identical toecho
in that context, which is a pretty big .It is!
Well, that's only because
echo
is an alias forWrite-Output
which is directly supposed to write objects to the pipeline (the general intention of a return in a shell scripting language, no?). The correct solution here is to changegit pull
togit pull | write-host
which writes it directly to the console instead of the pipeline.
-
@cursorkeys said in WTF Bites:
You actually click on 'NET::ERR_CERT_REVOKED' which is totally obvious and doesn't just look like static text
Wait, you can click on the error messages?
-
@ben_lubar said in WTF Bites:
@cursorkeys said in WTF Bites:
You actually click on 'NET::ERR_CERT_REVOKED' which is totally obvious and doesn't just look like static text
Wait, you can click on the error messages?
I've used Chrome forever and never knew this.
-
@greybeard said in WTF Bites:
@ben_lubar There are few worse things to run over plain HTTP than Docker registries. Unless you want Equifax or Yahoo-level pownage, put real certs on those things.
You may be thinking of Docker itself, if you TCP bind and don't put client authentication on it. For Docker registries, I suppose you can lose intellectual property depending on what you have in there. But if you have unauthenticated access to Docker, you have root.
-
@heterodox I assume @Greybeard was worried about Docker images being modified during a pull and giving you a virus instead of an OS. I would say that any Docker registry that's not moving entirely over wires you control should use TLS, but if you're just testing something on localhost or on a computer in another room in the same building, I wouldn't be too worried.
-
Want to read this article? Have an unrelated auto-playing video!
Makes sense. Only Musk fanboys are going to click on that to begin with.
-
@boomzilla how can you "prove" something about a lower layer of abstraction? A virtual machine can't know for sure that it's a virtual machine, it can only guess. The lack or presence of any "virtual"-looking hardware is not a guarantee one way or the other.
-
@ben_lubar said in WTF Bites:
@heterodox I assume @Greybeard was worried about Docker images being modified during a pull and giving you a virus instead of an OS.
Could happen, though I'm hearing from my DevOps guys that Docker EE at least has some level of assurance that the image you're pulling is the one that's expected and has been vulnerability scanned etc. Probably will make it to Community Edition soon. (I don't do much playing with Docker these days.)
-
-
Turning it off and on again isn't generally acceptable practice in medicine...
-
@heterodox said in WTF Bites:
@ben_lubar said in WTF Bites:
@heterodox I assume @Greybeard was worried about Docker images being modified during a pull and giving you a virus instead of an OS.
Could happen, though I'm hearing from my DevOps guys that Docker EE at least has some level of assurance that the image you're pulling is the one that's expected and has been vulnerability scanned etc. Probably will make it to Community Edition soon. (I don't do much playing with Docker these days.)
If you're running your own registry, that scanning responsibility is on you. And if someone is MITMing your registry, they can insert a virus and pretend THAT was what was scanned.
As far as I know, Docker images aren't verified the way that, say, DEBs or RPMs are by default, where an unknown signer is denied by default (although I do know that docker images can have some sort of signature in their JSON definitions)
-
@benjamin-hall said in WTF Bites:
Guess what pressing "continue" does?
To be fair, the message never specified what would happen if you did press continue.
-
https://i.imgur.com/g4AY9FB.png
Netflix has been doing this to me recently. It's not a generic single-drawing garblement, either, because if I mouse over 'manage profiles' it disappears and if I mouse off then it comes back again.
-
@pie_flavor said in WTF Bites:
https://i.imgur.com/g4AY9FB.png
Netflix has been doing this to me recently. It's not a generic single-drawing garblement, either, because if I mouse over 'manage profiles' it disappears and if I mouse off then it comes back again.
You need to make your browser 3px slimmer.
-
@tsaukpaetra said in WTF Bites:
@pie_flavor said in WTF Bites:
https://i.imgur.com/g4AY9FB.png
Netflix has been doing this to me recently. It's not a generic single-drawing garblement, either, because if I mouse over 'manage profiles' it disappears and if I mouse off then it comes back again.
You need to make your browser 3px slimmer.
that actually worked
How on earth is this not a common browser resolution?
-
@pie_flavor said in WTF Bites:
@tsaukpaetra said in WTF Bites:
@pie_flavor said in WTF Bites:
https://i.imgur.com/g4AY9FB.png
Netflix has been doing this to me recently. It's not a generic single-drawing garblement, either, because if I mouse over 'manage profiles' it disappears and if I mouse off then it comes back again.
You need to make your browser 3px slimmer.
that actually worked
How on earth is this not a common browser resolution?
Ask Blakeyrat, I'm sure he'd be overjoyed to explain it to you...
-
@tsaukpaetra said in WTF Bites:
@pie_flavor said in WTF Bites:
@tsaukpaetra said in WTF Bites:
@pie_flavor said in WTF Bites:
https://i.imgur.com/g4AY9FB.png
Netflix has been doing this to me recently. It's not a generic single-drawing garblement, either, because if I mouse over 'manage profiles' it disappears and if I mouse off then it comes back again.
You need to make your browser 3px slimmer.
that actually worked
How on earth is this not a common browser resolution?
Ask Blakeyrat, I'm sure he'd be overjoyed to explain it to you...
@blakeyrat how is this not a common browser resolution