The Official Status Thread
-
@pie_flavor Perhaps you were looking for https://what.thedailywtf.com/category/22/bot-testing ?
-
@Tsaukpaetra But I wanted a big ol' progress indicator to show off in the status thread.
Third time's the charm.
-
@discobot xkcd the cloud
-
@error_bot !xkcd the cloud
-
-
-
I think this needs more levels of indirection.
@pie_flavor !xkcd the cloud
-
@topspin feel free to make your own bot.
-
@pie_flavor I just tried, but it seems to give the wrong response.
-
@topspin what?
-
@topspin xkcd woosh
edited Status: seems I'm having my own difficulties getting a bot to work :/
-
Status: In Vue.js, this does not work as I expect:
methods: { ...mapActions('cart', [ 'addProductToCart' ]), addBadgeToCart: () => { this.addProductToCart(this.products[this.selectedBadge]); }, },
The
mapActions
function generates a wrapper function foraddProductToCart
. But, apparently this function is not available at the creation ofaddBadgeToCart
, and so when executedthis
is undefined.I think.
Oh well, I can easily unwrap the boilerplate code...
-
@pie_flavor !xkcd whoosh
EDIT:
503 Service unavailable
Let’s try something different.@Tsaukpaetra !xkcd whoosh
EDIT:
ERR_TOO_MANY_REDIRECTS
-
@Tsaukpaetra said in The Official Status Thread:
I think.
Nope, it's something to do with scopes and stuff.
Bookmarking...
-
status: I have discovered that mentions in HTML comments still mention.
-
@pie_flavor This can only go south from here.
-
@topspin Sorry, 503 an upstream server is not available.
-
status: woke up with a Backstreet Boys song on endless loop in my head... Sigh
-
Status: Woke up to the rare 8AM thunderstorm. The nephew isn’t gonna be able to burn off energy playing outside at the family lunch gathering today...
-
Status: Goddamn motherfucking sonofabitch.
-
@Benjamin-Hall said in The Official Status Thread:
status: woke up with a Backstreet Boys song on endless loop in my head... Sigh
Funny, I have N'sync on the brain at the moment...
-
@pie_flavor you look like you could use some diatomaceous earth.
-
@Tsaukpaetra dunno what that is. At least this time I found the ingress, although fucked if I know how they got through a solid cement foundation.
-
status: failed to enter sleep. On the one hand, behold! Sunrise! On the other... Fuck!
-
@Tsaukpaetra Sounds like a driver problem. Must be Linux hardware.
-
young dog's status IT'S 5:30, GET UP!
: (rolls over) It's Sunday (groans)
: IT'S 5:31. (Bounce/bounce)
: Knock it off!
, (wrestles)
: (groans)
-
@pie_flavor Looks like not everything is perfect on Earth-73
-
@TimeBandit the windows work, but the concrete doesn’t.
-
@Tsaukpaetra said in The Official Status Thread:
@Benjamin-Hall said in The Official Status Thread:
status: woke up with a Backstreet Boys song on endless loop in my head... Sigh
Funny, I have N'sync on the brain at the moment...
I read @Benjamin-Hall 's post and immediately thought of "Baby One More Time" by Britney Spears. WTF is wrong with me?
-
@Tsaukpaetra said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
I think.
Nope, it's something to do with scopes and stuff.
Bookmarking...
Holy fucking shit.
The likely cause of this is that you're mixing up your usage of regular functions and arrow functions. My guess is that you're using an arrow function. If you replace the arrow function with a regular function it will probably fix the issue for you.
I didn't think webdev could get any worse than it was in 2014, but this new framework did it. Now you can't just replace every anonymous function with arrow function and have everything working correctly - now you have to think if you want one or the other! Goddamn.
What's so bad about explicit context arguments?
-
@Gąska IME it's been the other way around, at least with Typescript. If I use arrow functions, the compiler automagically puts
this
into a_this
(or something similar) local var and everything works the way it should. But with normal Javascript functions, you have to remember that in Javascript, by defaultthis
meansanything_but_this
most of the time.
-
@Gąska said in The Official Status Thread:
I didn't think webdev could get any worse than it was in 2014
Come on. We know you're not that naive.
-
@Gąska WTF is an arrow function?!
-
@topspin said in The Official Status Thread:
@Gąska WTF is an arrow function?!
You know how when you declare anonymous function in JavaScript...
myArray.map(function (x) { return x * this.multiplier; });
Even JS programmers can see that it sucks. So ES5 revision of the language introduced
bind
method that you can call on any function that returns a wrapped instance of your function withthis
set to a particular value of your choice, so it doesn't change no matter how you call it. And in ES6, they've introduced a new syntax sugar that automatically binds function'sthis
to current scope'sthis
, which is what you want roughly 100% of the time. It's the so-called arrow function, that looks like Java lambda and works like Java lambda:myArray.map(x => x * this.multiplier);
And developers saw it was good, and everyone rejoiced. No more problems with wrong
this
ever again!Enter Vue.js and apparently it strongly relies on being able to rebind function's
this
to something else than what it was declared with. That means arrow functions become off limits for you, except when it's required to work then you must use them (or callbind
manually).
-
@pie_flavor Terro® and cardboard, or pay a smidge more for those fancy self-contained death packets.
-
Status: Guess everybody knows how sometimes life would be easier if you just acted like an asshole in the right moments?
Well, I think it's one of these situations. Screw this guy, you're out of favors to ask!Still considering if I should at least reply first to see what he wants.
-
STATUS: Yikes. That was exciting
Turns out letting the VCC jumper touch GND (even if for a few moments) is really, really bad. Blew the shit out of the trace and shorted the VCC line somewhere inside the second layer of the board, as far as I can tell...
Fortunately I blew up the $20 relay board not any of the other multi-hundred-dollar circuit pieces but yikes. Of course it was exactly the wrong wire touching exactly the wrong part of the board too...
-
@sloosecannon said in The Official Status Thread:
Turns out letting the VCC jumper touch GND (even if for a few moments) is really, really bad.
-
There are times when a combination of music in the headphones, interesting math in the problem and something else get you so deep in the flow that programming really feels like fun.
Then reality tightens the reins, you sigh and decide against implementing an anonymous Y-combinator where a recursive function that knows its name in the global namespace would suffice.
-
@discobot xkcd
-
@Gąska said in The Official Status Thread:
It's the so-called arrow function, that looks like Java lambda and works like Java lambda:
Actually, it looks nothing like Java lambdas - Java lambdas use
->
. It looks like C# lambdas.
-
@pie_flavor I always mess them up. Thought it's the other way around.
-
@pie_flavor “Looks nothing like” is a bit overblown here, don’t you think?
-
Status: Since dropping schema in MSSQL is a lot of work, I'm dropping and recreating the entire database instead.
-
-
@izzion like, seriously. There's no
CASCADE
onDROP SCHEMA
. You have to do everything manually. All the tables (in the right order), all the views, all the procedures and functions, all the indices, everything. It's crazy. But deleting database can be done all at once very easily. When you have scripts and data necessary to recreate everything, deleting databases is much faster than deleting schemas.
-
@Gąska said in The Official Status Thread:
You have to do everything manually.
Yeah... And don't forget, in the correct order! Heaven forbid you drop a table that has foreign keys without breaking them first!
Edit: Reading failure, unexpected end of stream.
-
@Gąska
Well, ok, but this is sort of a solved problem.Granted, you shouldn’t have to use SSMS to script the schema to drop it, but there’s really no reason to throw out the baby with the bath water.
-
@izzion run a random script from the internet with permissions to do everything it pleases with your database. Or delete and recreate the database. Pick your poison.
-
Also, when outputting data to OLE DB Destination in SQL Server Integration Services, "0x80004005: Unspecified error" means a required column is null.