WTF Bites
-
@anotherusername Wouldn't be the first time I've seen false positives. I've seen that happen with a site I control that contains nothing but a handful of images. In my case, I guess it's because that site is on shared hosting, and another site was flagged, and mine got tarred because of the shared IP address. I doubt that explains wunderground though.
-
@boomzilla said in WTF Bites:
My daughter normally has an external monitor plugged into her laptop. She's currently away from her normal spot, so no external monitor. Windows 10 is apparently too retarded to notice that the monitor isn't there any more so it was opening programs off screen, which she didn't know how to fix, because why would this even occur to you to be the problem?
I've once had it happen where the second monitor was turned off, yet Windows still tried to put the login screen on that monitor. Took a few minutes for me to figure out what that problem was.
-
@erufael Is there even a standardized way for an OS to know whether the monitor is powered-but-off instead of powered-and-on?
-
@lb_ Hell if I know. If there is, Microsoft has yet to find it.
-
@erufael Is there even a standardized way for an OS to know whether the monitor is powered-but-off instead of powered-and-on?
There's this, but I think it mainly serves to be presence information, not current state.
-
@erufael Is there even a standardized way for an OS to know whether the monitor is powered-but-off instead of powered-and-on?
I don't know if it's standardized, but Windows has always been able to tell the difference on my computers.
Which can be a pain sometimes, because if a monitor is turned off for even an instant, it rearranges all the stuff that was on that monitor onto the others that are still on.
-
In our office, we have a bunch of Cisco SIP phones. On the phone is a screen with the extension number in the top right. The building management have also placed tape labels on the phones with the extension number printed on them.
-
@blakeyrat said in WTF Bites:
Hover your mouse over the taskbar icon until the window preview pops up. Right-click the preview, select "Move" from that contextual menu. Hit any of the arrow keys on the keyboard, and the window will "snap" to the mouse position, where you can then move it where you want it.
This works unless the application is Discord, because the retarded developers who shat out that piece of crap didn't bother implementing any standard Windows window controls.Alternatively, use the Window Snap shortcuts (+arrows) to get it back on screen. This may work on some programs the other method won't work on (like Discord)
-
@boomzilla said in WTF Bites:
My daughter normally has an external monitor plugged into her laptop. She's currently away from her normal spot, so no external monitor. Windows 10 is apparently too retarded to notice that the monitor isn't there any more so it was opening programs off screen, which she didn't know how to fix, because why would this even occur to you to be the problem?
That's not necessarily Windows fault. (firefox) It's applications opening where they last were without checking if that's still valid. (firefox)
While the app has focus:
AltSpace
M
any arrow key to start move
move mouse, poof, it moves to the screenedit: d (shoulda known...)
-
I don't know if it's standardized, but Windows has always been able to tell the difference on my computers.
Which can be a pain sometimes, because if a monitor is turned off for even an instant, it rearranges all the stuff that was on that monitor onto the others that are still on.
Same. If I even switch inputs on my monitor, everything on the previous input snaps out of that display.
-
@raceprouk said in WTF Bites:
In our office, we have a bunch of Cisco SIP phones. On the phone is a screen with the extension number in the top right. The building management have also placed tape labels on the phones with the extension number printed on them.
I guess that's in case some jokester logs them out ?
-
I guess that's in case some jokester logs them out ?
No, it's for when the phone is powered off
-
@raceprouk said in WTF Bites:
In our office, we have a bunch of Cisco SIP phones. On the phone is a screen with the extension number in the top right. The building management have also placed tape labels on the phones with the extension number printed on them.
I guess that's in case some jokester logs them out ?
The tape is easier to read, I guess, so there's that.
-
@raceprouk we used to have one of these. We ran a website for someone and had their brand name in the domain. Routinely cited for "you're phishing for my account with (brand)" because said brand makes very expensive software and it looked suspicious.
-
@erufael Is there even a standardized way for an OS to know whether the monitor is powered-but-off instead of powered-and-on?
I don't know if it's standardized, but Windows has always been able to tell the difference on my computers.
Which can be a pain sometimes, because if a monitor is turned off for even an instant, it rearranges all the stuff that was on that monitor onto the others that are still on.
That could be that the monitor stops communicating when it's turned off. My monitors have to be unplugged for that.
-
@raceprouk said in WTF Bites:
In our office, we have a bunch of Cisco SIP phones. On the phone is a screen with the extension number in the top right. The building management have also placed tape labels on the phones with the extension number printed on them.
If you know the generic password, I dare you to log out of them, then log into another extension. :D
I did that as a prank in our department when it was a slow week. Good times.
-
@heterodox said in WTF Bites:
I don't know if it's standardized, but Windows has always been able to tell the difference on my computers.
Which can be a pain sometimes, because if a monitor is turned off for even an instant, it rearranges all the stuff that was on that monitor onto the others that are still on.
Same. If I even switch inputs on my monitor, everything on the previous input snaps out of that display.
My monitor is then. I just tried it. Nothing happened.
Then again, I'm connecting it via HDMI to DVI on the monitor's side. Maybe something got lost in translation?
-
@tsaukpaetra said in WTF Bites:
Then again, I'm connecting it via HDMI to DVI on the monitor's side. Maybe something got lost in translation?
Sounds like that could be. I use HDMI and DP to HDMI.
-
C:\Users\[yami]\Documents\Git Checkouts\app-control\node_modules\node-sass\lib\binding.js:15 throw new Error(errors.missingBinary()); ^ Error: Missing binding C:\Users\[yami]\Documents\Git Checkouts\app-control\node_modules\node-sass\vendor\win32-x64-57\binding.node Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 8.x Found bindings for the following environments: - Windows 64-bit with Node.js 6.x This usually happens because your environment has changed since running `npm install`. Run `npm rebuild node-sass --force` to build the binding for your current environment.
-
@raceprouk
No, you're wrong, the first is the bigger WTF.
-
@yamikuronue SASS needs a native library? What?
-
@yamikuronue said in WTF Bites:
Node.js 8.x
@yamikuronue said in WTF Bites:
Node.js 6.x
Is that not a sensible reason for that problem?
-
@tsaukpaetra said in WTF Bites:
Then again, I'm connecting it via HDMI to DVI on the monitor's side. Maybe something got lost in translation?
I did that with an old laptop (replaced about a year ago). Don't remember any issues unplugging... Pretty sure everything snapped back.
-
@dreikin No. Node 6 code runs in Node 8. I upgraded my version of node so I could play with new node 8 features, and it somehow broke the node module I was using. This is because it's not written in Node; it installs with NPM, but it actually is some other binary with a specific wrapper around it for every version of Node, and it therefore breaks when I upgrade Node without re-installing it.
-
@yamikuronue said in WTF Bites:
@dreikin No. Node 6 code runs in Node 8. I upgraded my version of node so I could play with new node 8 features, and it somehow broke the node module I was using. This is because it's not written in Node; it installs with NPM, but it actually is some other binary with a specific wrapper around it for every version of Node, and it therefore breaks when I upgrade Node without re-installing it.
Yeah, it's written in Ruby IIRC.
-
@yamikuronue said in WTF Bites:
This is because it's not written in Node; it installs with NPM, but it actually is some other binary with a specific wrapper around it for every version of Node, and it therefore breaks when I upgrade Node without re-installing it.
It could be doing some sort of integration with a C or C++ API, and those are potentially complex across version changes (and in fact you'd expect to have to rebuild between major versions). A generic FFI call library wouldn't have that problem, but some C and C++ libraries use a lot of macros (and templates in C++) that make using a FFI call library really difficult.
Delving into this sort of thing really teaches you the difference between an API and an ABI.
-
bool UHandComponent::IsInteractableValidForInteracting(UInteractableComponent* InteractableComponent) { return InteractableComponent && InteractableComponent->GetCanHandInteract(); } bool UHandComponent::IsObjectValidForTouch(UTouchableComponent* TouchableComponent) { return IsInteractableValidForInteracting(TouchableComponent) && TouchableComponent->GetImplementsTouch(); } bool UHandComponent::IsObjectValidForActivating(UActivatableComponent* ActivatableComponent) { return IsInteractableValidForInteracting(ActivatableComponent) && ActivatableComponent->GetImplementsActivate(); } bool UHandComponent::IsObjectValidForActivating(UActivatableComponent* ActivatableComponent, EActivateButton ButtonToExclude) { return IsObjectValidForActivating(ActivatableComponent) && ActivatableComponent->ActivateButton != ButtonToExclude; } bool UHandComponent::IsObjectValidForUse(UGrabbableComponent* GrabbableComponent) { return IsInteractableValidForInteracting(GrabbableComponent) && GrabbableComponent->GetImplementsUse(); }
I really don't know what they were going for here...
-
@yamikuronue said in WTF Bites:
Node 6 code runs in Node 8.
Code, as in Javascript code, does.
Bindings, however, are not Javascript code. They are native (machine code) libraries that are linked with the library implementing the runtime. And that library is not binary compatible between versions, so the binding must be compiled for the specific version.
This is the same for all languages. Code in that language will generally run on newer version fine, but bindings to native libraries (and to other languages, which usually need to go through native) must be recompiled for correct version.
but some C and C++ libraries use a lot of macros (and templates in C++) that make using a FFI call library really difficult.
Use of FFI is actually rather new thing and is rare. I've used, and sometimes written, bindings for various languages, but I've never seen FFI for Perl at all (it had quite elaborate binding generator taking care of type conversion and wrapping) and while I know where to find it for Python, I can think of just one case where it is used; everything else is module linked against the runtime library.
And I think the actual reason is that if it is linked against the libraries, the compiler will use the original header and the linker will verify the functions called actually exist. FFI binding duplicates the information from the header, so it may easily get out of sync.
-
Use of FFI is actually rather new thing and is rare.
The level of use varies between languages, but the big problems are usually that:
- Some of the API is done with macros and compile-time constants that the FFI can't discover easily, and
- The host language doesn't really work like the language that the library is native for, so even after binding it doesn't feel particularly usable.
The latter problem is also pretty common with automatically generated binding layers (e.g., such as are produced by SWIG). The real cause of it is that different languages prefer different idiomatic usages, and so far as I'm aware that takes a human programmer to write a proper adaptor to work around.
-
The real cause of it is that different languages prefer different idiomatic usages
Yes, but you could write the adapter in the target language and avoid the need to recompile. The use of the actual headers is more important (and yes, often this is so that the install-time configuration is correctly accounted for).
-
Bindings, however, are not Javascript code. They are native (machine code) libraries that are linked with the library implementing the runtime. And that library is not binary compatible between versions, so the binding must be compiled for the specific version.
Right, but why the fuck do I need a native library to compile Sass?
-
@yamikuronue said in WTF Bites:
Right, but why the fuck do I need a native library to compile Sass?
Speed.
-
@raceprouk said in WTF Bites:
@yamikuronue said in WTF Bites:
Right, but why the fuck do I need a native library to compile Sass?
Speed.
It can't go below 80k/s or the compile times will explode.
-
@yamikuronue said in WTF Bites:
Right, but why the fuck do I need a native library to compile Sass?
Because http://sass-lang.com/libsass is written in C++. And that is probably so that it can be bound to any other language, because all languages can bind C (and C++ wrapped in suitable C API) while trying to mix two different VMs is something most don't even dare to try.
… maybe npm will one day learn to build the extensions with emscripten; then they will be mostly system and version independent.
-
trying to mix two different VMs is something most don't even dare to try
Mixing two different managed environments into one process is high grade excitement, perfectly suited for people who like their crashes entirely impenetrable to debug.
-
Fucking motherfucker cocksucker fuck fucker fucking goddamn.
Comment on the method:
returns a list of all the foos in format "bars.foo.thing"
Implementation in the method:
idiotsList.add("Bar." + foothing);
-
@dkf
I'm sure @Perverted_Vixen could find a way to penetrate even those crashes.
-
@boomzilla said in WTF Bites:
Fucking motherfucker cocksucker fuck fucker fucking goddamn.
Comment on the method:
returns a list of all the foos in format "bars.foo.thing"
Implementation in the method:
idiotsList.add("Bar." + foothing);
Oh, I forgot to mention: The comment was the correct behavior.
-
warning C4996: 'TEnumAsByte_EnumClass<true>': TEnumAsByte is not intended for use with enum classes - please derive your enum class from uint8 instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
I'm not even sure what this is saying...
-
@tsaukpaetra you have an
enum class foo : byte
andbyte
is an enum class already.
-
.... why...?
-
@twelvebaud Why did you put a bunch of double yous in the address for no reason?
-
@ben_lubar
Because he's browsing the You You You You You You. Not twitter (the Me Me......)
-
@ben_lubar I didn't. I just clicked the links in @psychobunny's, @julianlam's, and @barisusakli's GitHub profiles.
-
-
-
@ben_lubar said in WTF Bites:
@twelvebaud Why did you put a bunch of double yous in the address for no reason?
Why was www.nodebb.com/org omitted from the SAN extension for no reason?
-
Why is there a "Scrum Alliance"? Since when do simple ideas get their own organizations? Is there a "Use a bug tracker to keep track of bugs Alliance"? Or a "Royal Society for Storing Small Things in a Closed Box so you Won't Lose Them"?
-
@anonymous234 said in WTF Bites:
Why is there a "Scrum Alliance"? Since when do simple ideas get their own organizations? Is there a "Use a bug tracker to keep track of bugs Alliance"? Or a "Royal Society for Storing Small Things in a Closed Box so you Won't Lose Them"?
What about the Being Alive club?
-
@Tsaukpaetra I wouldn't be caught dead in that club.