WTF Bites
-
Was curious, so I went to Sonos to check for the specs of their speakers.
Nowhere to be found, the most important spec: Watts.
Chat with a representative and ask him about it.
Translation: If we told you how many watts our overpriced speakers output, you would ROFL, so we don't
-
_XXX
:gig<wait 5 seconds for the popup to settle down>gity:<wait 5 seconds more>
-
@timebandit
Another "fun" piece of trivia about Shitnos speakers...If you have their wireless enabled, they will form a WDS bridge network with each other, in addition to potentially joining your wireless network to allow you to stream to them from your computer.
Which, of course, shits all over your entire wireless network, because they'll bridge everything they hear, not just Sonos-to-Sonos traffic. And the only way to disable that is to disable their wireless functionality altogether and hard wire them into your network.
Which can cause another problem if you're on a corporate network that segregates wireless and wired clients into separate VLANs, because the speakers will only accept management and streaming via multicast, in such a way that at least stock Cisco switch settings won't allow for cross-VLAN management of or streaming to a Sonos speaker. Now, I'll throw out the disclaimer that I haven't spent any time directly working on the cross-VLAN issue, all I have is my co-worker's description of the problem and resolution of "you have to be on the same network as the speaker to hit it", but...
-
@izzion I like this solution better
And something like this (first result that came out)
And look, right there in the description:
-
@timebandit They output 24W of ?
-
@pie_flavor I did notice that no one explained what
return
was, and whyreturn
ing an open-ended recursive call on the unaltered arguments originally passed to the method was less than bright.Mind you, you shouldn't have needed to do that, but... well, clearly he wasn't going to learn it from the docs, since he was flailing around blindly without even noticing the fundamental problem. He even stated that he didn't know what
return
was for, and yet he doesn't seem to have ever actually, you know, looked it up or anything.You quite correctly told Ryan96t what he needed to do, which was learn Java first, independent of Sponge and all that, and he didn't seem to ever get that message. I almost get the impression he thought that Java was just an alternative to Skript, and didn't really get the whole concept of a general-purpose programming language. He honestly seems to think of Java as a Minecraft thing.
-
@hungrier They clean your feet
-
Also, he was calling it recursively? I didn't even notice that, I thought he was calling a SpongeEventFactory static import. The creativity of idiocy knows no bounds.
-
GODDAMNIT, it's horrible enough that the emoji autocompletion popup takes forever to load, but does it have to block typing???
What are you using? Typing alone in Chrome Mobile is enough to make it keyboard freeze (and sometimes get killed for unresponsiveness).
-
ECMA script is proposing to officially advise against semi-colon insertion. This technical decision is apparently "hurtful" and lacks empathy.
-
@cartman82 It's hurtful to not include them, actually. Look at them, the poor little things. Why do you have to ignore them?
-
@tsaukpaetra said in WTF Bites:
What are you using? Typing alone in Chrome Mobile is enough to make it keyboard freeze (and sometimes get killed for unresponsiveness).
Firefox in a PC. The slowness seems to come from it loading lots of png files as I type.
Oh wow, I clicked the emoji icon in the toolbar to see if preemptively caching them all would help the popup become snappier (it doesn't) and I notice there's a new emoji dialog.
And it look much worse than it used to! NodeBB is devolving! It used to be decent, and recently it's becoming worse! Gaaa.
-
-
NodeBB is devolving! It used to be decent, and recently it's becoming worse!
If it's trying to compete with , it's on the right way
-
God dammit. I can't even watch VLC on the second screen, even at 1080p, even with the animated desktop disabled, without stuttering.
-
@pie_flavor in your defense, Chrome is a better video player than VLC most of the time, and Chrome isn't even trying to be a video player.
On a related note, Chrome likes to load the entire video into RAM at once and then crash the tab if it runs out.
-
@cartman82 PR request: A semicolon-mandatory version of Javascript, both to add some sanity to the language and to discourage people who write things like that.
-
@pie_flavor said in WTF Bites:
God dammit. I can't even watch VLC on the second screen, even at 1080p, even with the animated desktop disabled, without stuttering.
Well yeah, it's VLC.
-
@cartman82 PR request: A semicolon-mandatory version of Javascript, both to add some sanity to the language and to discourage people who write things like that.
You have ESLint for that.
-
@cartman82 said in WTF Bites:
ECMA script is proposing to officially advise against semi-colon insertion. This technical decision is apparently "hurtful" and lacks empathy.
If you rely on automatic semicolon insertion you should feel hurt. Pain is a great teacher. Stop being such a retard and type the fucking semicolons already.
-
-
-
@sockpuppet7 said in WTF Bites:
Disgraceful.
@timebandit said in WTF Bites:
That sounds like work
Less work than trying to figure out some ASI fuckup that requires you to memorize the js parser rules.
-
-
@lb_ Right. A one-gigabyte movie won't be the best thing to watch in Chrome, then.
@hungrier You may have missed my earlier posts about my graphics card being stupid and the connection being dodgy.
-
@boomzilla said in WTF Bites:
Less work than trying to figure out some ASI fuckup that requires you to memorize the js parser rules.
I didn't even know you could omit the semicolons
Another strike against JavaScript
-
@timebandit Image fail, Mr. Hotlink.
-
@brisingraerowing Fixed
-
@timebandit said in WTF Bites:
@boomzilla said in WTF Bites:
Less work than trying to figure out some ASI fuckup that requires you to memorize the js parser rules.
I didn't even know you could omit the semicolons
Another strike against JavaScript
You can only omit them sometimes, and sometimes the insertion can be nonintuitive
@cartman82 said in WTF Bites:
ECMA script is proposing to officially advise against semi-colon insertion. This technical decision is apparently "hurtful" and lacks empathy.
Update:
Bonus: He's actually a significant contributor to dozens of JS development guides and courses. So not only is this his lolcow belief, but he's instrumental in creating a whole new pasture of them.
-
@pie_flavor said in WTF Bites:
Did you have to put the mouse cursor in all of those screenshots?
-
@pie_flavor said in WTF Bites:
https://i.imgur.com/0Z3yVNt.png
https://i.imgur.com/12wjTWE.png
-->: You don't even have to learn all of Java. Just a few of the basics, e.g., what parameters are, how to call functions, basic code structure, and what the keywords mean. That can take less than a day, and it will apply to almost any programming language you would likely come across, so your time isn't wasted learning it.
Also, he was calling it recursively? I didn't even notice that, I thought he was calling a SpongeEventFactory static import. The creativity of idiocy knows no bounds.
It was a SpongeEventFactory method, but he's apparently overriding it. And then calling it recursively.
-
@pie_flavor Method signature:
public static MoveEntityEvent createMoveEntityEvent(Cause cause, Entity targetEntity) {
Last lines of method:
return createMoveEntityEvent(cause, targetEntity); }
I am pretty sure he had no idea what the last line does, or even what a function return is, as he said he added it just to get the compiler to stop complaining that he was declaring a return type without making a return.
You will also take note that at no point in the method does it actually do anything with either of the parameters, aside from this.
EDIT: Actually, it does use them in one other place, but it's even worse than I realized. If you look at the third line of the method:
Entity player = createMoveEntityEvent(cause, targetEntity).getTargetEntity();
-
@sockpuppet7 said in WTF Bites:
https://eslint.org/docs/rules/no-dupe-args says:
If more than one parameter has the same name in a function definition, the last occurrence “shadows” the preceding occurrences. A duplicated name might be a typing error.
Say it ain't so!
>> (function(a, b, a){ console.log(arguments); console.log(a); })('a', 'b', 'a again') Arguments { 0: "a", 1: "b", 2: "a again", 2 more… } a again < undefined
-
Oh god...
>> var wtf = { a: 'a1', a: 'a2' }; wtf.a; < "a2"
>> var wtf = 0; switch (wtf) { case 0: console.log(0); break; case 0: console.log(1); break; // JS: sure, no problem } < 0
-
Say it ain't so!
Remember, JavaScript was created with that “be liberal in what you accept” compatibility-oriented mindset. Result is that almost nothing is a hard error. It turned out not to be as bright idea as they thought.
-
I had been trying to look up an old story/urban legend that seemed relevant here, of someone (I think it was Tony Hoare) testing a COBOL compiler and finding that the error checking was so lenient that he managed to get it to compile their university's interdepartmental mail.
I didn't find that yet, but I did find something at least as disturbing, and maybe even weirder:
It is from a couple years ago, true, but I checked and apparently this hadn't been mentioned here before.
COBOL meets Node.js. Just what the world needs...
-
I'm guessing that's the (parent?) class for the code?
No, the class extends Object. SpongeEventFactory contains a bunch of static methods for dynamically generating event interface implementations through ASM at runtime.
-
@scholrlea said in WTF Bites:
COBOL meets Node.js. Just what the world needs...
It's the spiritual successor to COBOL ON COGS…
-
@pie_flavor said in WTF Bites:
WHAT
I switch to IntelliJ, as soon as I click, VSCode comes to the top.
I minimize VSCode, next it's the server window. Minimize that, next it's Discord. Minimizing and maximizing IntelliJ did not fix it; what did was minimizing everything and only opening IntelliJ and then clicking in it.
I started having the same problem after Windows 10 Fall Creators Update. But in my case the "transparent" application differs - most of the time it's Chrome, other times it's HydraIRC. The only solution seems to be restarting the glitched application. Seems to happen most often after playing full-screen games, and the victim is usually the first thing I Alt+Tab to after finishing the game.
-
...some resolvers will hold DNS cache entries for a whole week if asked to (https://blog.benjojo.co.uk/post/dns-resolvers-ttl-lasts-over-one-week), and I joked at the end that one could use this for file storage.
Well, I could not stop thinking about doing this...
-
@cartman82 Never heard them called that before... Just water cooler bottles. Or jugs. Or "FUCK, can you lift this for me?"
-
@lb_
I... can't do it. I don't have the strength to get more than 30 seconds into that video...I couldn't even bring myself to click Play!
-
@zecc variable redefinition within the same context isn't a problem for Javascript either.
It does at least complain if you try to define a constant more than once.
-
They didn't used to be. You know why they are disabled now? Because they can't suck out the submit data through their spy service like they can rewriting URL links.
Wankers.
-
@anotherusername said in WTF Bites:
It does at least complain if you try to define a constant more than once.
I learned yesterday that our compiler complains about constants, too, if you enable code coverage — WARNING-level diagnostic messages that there will be no toggle coverage for those constants. Well, duh, that's rather the point of making them constant, that they won't change, isn't it?
-
@hardwaregeek said in WTF Bites:
that's rather the point of making them constant, that they won't change, isn't it?
you didn't really mean to make that variable a constant, did you?
-
@tsaukpaetra Considering that it's a file called
global_constants.h
, or something like that — yes, I'm pretty sure the person who wrote it did mean to make it a constant.BTW, I should mention that I learned this in the context of a bug ticket to clean up the thousands of warnings the compiler generates every time we compile.
-
Reviewing the schedule of holidays for daycare:
- Thanksgiving (last Thursday in November) & the Friday after
I think I need to have a word...
-
@greybeard Explanation for non-US: Thanksgiving is the fourth Thursday, which is usually but not always the last Thursday.
-
@hardwaregeek ...and this year November has five Thursdays.