WTF Bites
-
@TimeBandit said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Look ma, such restraint!
liar, I saw your porn stash!
Really? I doubt that...
Did you find the glob section? I have this interesting take on water cooling I'd like to get feedback on....
-
Yeah, got me. Stupid “smart” quotes.
This would have been better if auto-correct had managed to do its job and fix the “typo”, in a meta-funny way.
Oh it did, just not the way you thought:
Spent too much time on TDWTF thread is where?
-
That would really mess things up if anyone actually tried to execute this.
Anyone who tries to execute code found on (W)TDWTF deserves what they get.
-
@Zerosquare said in WTF Bites:
That would really mess things up if anyone actually tried to execute this.
Anyone who tries to execute code found on (W)TDWTF deserves what they get.
Actually, I've found this place more helpful than SO or other such places as far getting advice that actually works. For all our and behavior, there are good and helpful people here with some real skills.
-
@Tsaukpaetra said in WTF Bites:
Fuck knows why...
I'm beginning to think it's client/server arguing back against each other. Easy way to test: Make the code run on only one or the other!
Too bad testing iteration is 15 minutes per change-build-cook-package-test (because Shipping builds absolutely cannot use normal cooked data, it MUST be packaged. For raisins)....
-
Status: Uh, say what?
Granted, I did remove spamware (Thanks, ImgBurn), but this is kinda unexpected.
-
@DCoder I wish they would open source Windows XP Paint
I wish they would open source Notepad. And then accept back the sudden barrage of improvements.
-
sudden barrage of improvements.
Some core system controls would need to be corrected for my biggest peeve....
-
@Benjamin-Hall said in WTF Bites:
@Zerosquare said in WTF Bites:
That would really mess things up if anyone actually tried to execute this.
Anyone who tries to execute code found on (W)TDWTF deserves what they get.
Actually, I've found this place more helpful than SO or other such places as far getting advice that actually works. For all our and behavior, there are
good and helpfulgrumpy people here with some real skills.FTFY.
-
Tired of dealing with bad updates which break your system? You should play a console game to relax...
...oh.
-
@Zerosquare Meanwhile somebody also figured out that the level 1 gun you get at start outperforms all other guns in the game. And that the on-screen damage scores are pretty much BS and don't correlate to the actual damage you do. Also, the player health is bugged somehow, and changes randomly between missions.
All in all, following the topics in the subreddit is kinda amusing. My take is that if the bugs in the game compound in the right way, Anthem actually becomes a bit challenging and exciting (most of the time it's not).
-
@Tsaukpaetra said in WTF Bites:
Status: Uh, say what?
Granted, I did remove spamware (Thanks, ImgBurn), but this is kinda unexpected.
Back when malware that hijacked browsers was very common, this feature actually made a lot of sense.
TRWTF is Chrome trying to use this situation to steal even more data from you.
-
there are
good and helpfulgrumpy peopleThose are not necessarily mutually exclusive.
-
There are a whole bunch of widgit-ma-jigs on this checkout page that can modify the order total. Shipping address, "Use Billing", shipment method, coupon, if you get a special bonus membership discount or not.
They all handle their own change by twiddling other controls and recalculating (maybe) the total and then trying to call a function on the "Order Total UI" to update it. And every single goddamn one of them does something just slightly different.
I finally gave up and just did this:
function DoTheUpdate() UpdateThis() UpdateThat() GetTaxes() RecalculateTheFuckingCart() end function
Then in every single
.Handles Whatever.Event
, I just set some "Page is dirty" variable to true.In Pre_Render
If pageIsDirty then DoTheUpdate() End If
Then ripped out everything that pushed information to the "Order Total UI". Instead, the Order Total UI can just fucking do this in PreRender
SubTotal.Text = Order.Subtotal If Order.HasCoupon Then Coupon.Text = Order.CouponTotal end if if Order.HasMembershipDiscount Then ...
And so forth.
Fucking hell why is this so hard for people to understand;
- Widget A gets input that updates the Order
- Widget A should update ONLY THAT PART OF THE ORDER IT HANDLES (Tax, shipping,etc)
- Widget A should then raise an event saying "Yo assholes I changed something"
- Widget A should do absolutely nothing fucking else. It should not PUSH updated information to other widgets
- Widget B heads the "Yo Assholes" event. If it needs new information from the Order, it should PULL that information
- Widget B should do nothing fucking else
- Etc
- Finally, after everyone is done reacting to the input, then and only then should Widget UI say "okay, Imma gonna show this shit"
- Widget UI PULLS the information it needs from the Order. Widget UI never, ever, ever, ever makes data changes to the Order.
- Widget UI uses the data from the Order to regenerate the UI. It should never, ever, ever, ever try to query other widgets for information.
- Widget UI should update the UI based on the current state of the Order. And that's it.
-
@boomzilla said in WTF Bites:
Anonymized (pseudo-ized) query fragment I just discovered in one of our reports:
select distinct (foo stuff) where foo.bar is null union select distinct (same foo stuff) where foo.bar is not null and foo.name not in (select foo.name where foo.bar is not null)
EDIT: forgot to put in the 100% useless and redundant
distinct
sSo...
is not null
andnot in (... is not null)
?That would have to be something that isn't null, but also doesn't compare as equal to itself. I don't know enough about SQL data types to know whether there are any values that might fit that condition.
-
@Lorne-Kates There's something to be said for immediate-mode.
-
@boomzilla said in WTF Bites:
Anonymized (pseudo-ized) query fragment I just discovered in one of our reports:
select distinct (foo stuff) where foo.bar is null union select distinct (same foo stuff) where foo.bar is not null and foo.name not in (select foo.name where foo.bar is not null)
EDIT: forgot to put in the 100% useless and redundant
distinct
sSo...
is not null
andnot in (... is not null)
?That would have to be something that isn't null, but also doesn't compare as equal to itself. I don't know enough about SQL data types to know whether there are any values that might fit that condition.
It's 100% retarded. Just have one of the queries without checking for null. The first query constrains to non-null. The second query constrains to null and then double checks with that
not in
bit just to be extra super duper sure, I guess. Wouldn't want to miss any rows with a null or a not null!Technically, the name thing is an extra bonus that needs explanation. It's a unique but compound key with another field (call it
baz_id
). If the field in question is not null, then the row always has a particular value ofbaz_id
. And BTW, this report always looks at only stuff with that particularbaz_id
, so the query is uselessly looking at other rows that don't even matter.NB:
baz_id
specifies whether this whole thing belongs to The RealBaz
or basically "practice"Baz
es.
-
@Lorne-Kates said in WTF Bites:
Widget UI uses the data from the Order to regenerate the UI. It should never, ever, ever, ever try to query other widgets for information.
Maybe it's just my total ignorance of anything webdev and the related paradigms and design patterns, but isn't the whole point of widget state objects that the widget UIs are very intimate with them and retrieve all kinds of informations from them, and don't query anything else?
-
That would have to be something that isn't null, but also doesn't compare as equal to itself.
-
@boomzilla said in WTF Bites:
It's 100% retarded. Just have one of the queries without checking for null. The first query constrains to non-null. The second query constrains to null and then double checks with that not in bit just to be extra super duper sure, I guess. Wouldn't want to miss any rows with a null or a not null!
Wait, is there a type in there? If I'm reading this correctly, the first query only the null values, and then unions with (all non-null values, except those that share names with (all non-null values)). Like, there's a union between the nulls and an empty set.
-
@boomzilla said in WTF Bites:
It's 100% retarded. Just have one of the queries without checking for null. The first query constrains to non-null. The second query constrains to null and then double checks with that not in bit just to be extra super duper sure, I guess. Wouldn't want to miss any rows with a null or a not null!
Wait, is there a type in there? If I'm reading this correctly, the first query only the null values, and then unions with (all non-null values, except those that share names with (all non-null values)). Like, there's a union between the nulls and an empty set.
To null or not to null refers only to a particular column. The rest of the row will have data.
-
@boomzilla yes, I know. I was abbreviating there. But anyway, the right hand side is always empty, so union is always no-op. So the final result is only those rows WHERE foo.bar IS NULL.
-
@boomzilla yes, I know. I was abbreviating there. But anyway, the right hand side is always empty, so union is always no-op. So the final result is only those rows WHERE foo.bar IS NULL.
Ah shit. Anonymization fuck up by me.
select distinct (foo stuff) where foo.bar IS NOT null union select distinct (same foo stuff) where foo.bar IS null and foo.name not in (select foo.name where foo.bar is not null)
Filed Under: Where Muphry is not null
-
Glassdoor alerts
I created an alert for "Windows C++", the actual alert is "Windows C" (I tried various things, obviously they're biased against C++)
I continue to get alerts for "Internal Medicine Physician" and "Truck Driver Class C". Those are at least 50% of the items in the daily email.
-
@Lorne-Kates said in WTF Bites:
Widget UI uses the data from the Order to regenerate the UI. It should never, ever, ever, ever try to query other widgets for information.
Maybe it's just my total ignorance of anything webdev and the related paradigms and design patterns, but isn't the whole point of widget state objects that the widget UIs are very intimate with them and retrieve all kinds of informations from them, and don't query anything else?
In web dev, you basically get one "Draw" per web request. Request page, do processing, render the page, done.
-
@dcon So they're using
indexOf()
instead ofequalTo()
Wonderful!
-
Someone on a Bookface group I'm a member of showing a photo of their modified headlights that they tinted black.
-
@loopback0 It's even more fun when they do that to the tail lights, so you can barely see them when you're behind them at night.
-
@loopback0 said in WTF Bites:
Someone on a Bookface group I'm a member of showing a photo of their modified headlights that they tinted black.
-
@loopback0 said in WTF Bites:
Someone on a Bookface group I'm a member of showing a photo of their modified headlights that they tinted black.
You obviously don't know about Dark Suckers, you fucking car n00b
-
@Lorne-Kates said in WTF Bites:
@loopback0 said in WTF Bites:
Someone on a Bookface group I'm a member of showing a photo of their modified headlights that they tinted black.
You obviously don't know about Dark Suckers, you fucking car n00b
You obviously don't know about how tinting works by blocking the Dark Sucking.
-
-
@loopback0 said in WTF Bites:
Dark Sucking
My favourite kind of BJ
:giggity_dark_skin_tone:
-
@loopback0 We should absolutely make all of our emoji compatible with skin tone modifiers.
:dilbert_medium-light_skin_tone:
can be Asok, etc.
-
-
@pie_flavor Looking forward to :whoosh_medium_dark_skin_tone:
We could have s for every stage of toasting!
-
Holy open source, Stallman! Microsoft open sourced a piece of Windows!
And guess what things lie in the depths of the humble Calculator…
Source: @0xUID
There's a claim in the comments that this is only active in debug builds, but .
-
- Make a phone whose primary (?) value-add is the quality of its camera.
- Create an ad campaign featuring the camera.
- Fake the photos in the ads.
- ?
Profit.Oops!GOTO 1
TL;DR: The photo on the left is the Huawei ad; the one on the right is a stock photo from Getty Images.
-
@HardwareGeek I sort of feel for them a bit...just a bit. It's getting nearly impossible to differentiate within the mobile space on anything.
I've been involved with helping marketing before on a product that, while well engineered, was pretty much like all the others in that space; I was tempted to throw out 'won't set your premises on fire like the competitions product' as a key point.
-
@Cursorkeys said in WTF Bites:
I was tempted to throw out 'won't set your premises on fire like the competitions product' as a key point
You compete with @Polygeekery ?
-
@TimeBandit Or Samsung.
-
@HardwareGeek Or @Polygeekery using a Samsung.
-
@Erufael Hold on, let's not go off the chain here.
-
Dotnet core (Ubuntu repository) just updated to 2.2.3, but there doesn't seem to be a 2.2.3 release
-
TIL that npm puts its log files and cache in
%APPDATA%\Roaming
.If you aren't running away right now then it means you have never heard about a Windows domain having roaming user profiles. Domain administrators are mostly going to love how your cache folder is taking up server bandwidth when it is being copied between machines, at least if you aren't hitting any disk quotas on the storage server or your current local machine (if you switch machines all the time - though nowadays IT would likely hand you a laptop).
Blakey called it a bug before, and apparently it got reported in 2014 and nothing was done with it so a bot closed the ticket. Then it got reported again, but they switched to the Discourse bug tracking software.
And so we come to the present, where it's still doing the wrong thing.
-
@JBert So you got CADT combined with a bug tracker? Amazing.
-
A major international bank accidentally published a private package of their own to the public npm Registry, took 3 years to notice, and then sent DMCA takedown notices to Amazon and Cloudflare for hosting "stolen code". Now I have to pay a lawyer to explain this to them.
Source: @seldo (co-founder of npm)
-
-
@boomzilla That's a nice way to not handle support questions
-
@TimeBandit that thread is classic :
Where do I put stuff like “this error message is misleading” if #support doesn’t work?
It depends. Why not make a PR with what you think the error message should be?
I don’t understand what it’s doing well enough to make a PR suggesting a better version. The error message is saying “do this” but then I do that and I get the error again. Should I just submit again and hope someone sees it before the holiday weekend?
sounds like a good one for #support or, if you have a reproducible bug, #bugs