message.guild.roles.find is not a function - discord.js

EDITED FOR SELF ANSWER
message.guild.roles.find is not a function Is a result of using a DJS v11 method on DJS v12, in other words message.guild.roles.find is outdated and should be replaced with
message.guild.roles.cache.find
DJS v11 is now discontinued. Follow this guide to update your code for v12 Here

Yes, you now have to use message.guild.roles.cache.find, since v12 uses Managers.
You can read the documentation to find the other changes by yourself ^^

Related

how to run existing restassured tests with gatling?

I'm trying to implement gatling performance tests as a part of my project. I have existing test-cases written in RestAssured with Java and maven as a build tool. Can I re-use those and hook with Gatling. I checked the reference https://abstracta.us/blog/performance-testing/tutorial-use-gatling-maven/ - but mostly it tells me to write new tests for Gatling.
Thanks!
No, it's not possible atm.
And the blog post you mentioned is definitely not the reference. The reference is the official documentation and the Gatling Academy.

what is difference between tanstack/react-query and react-query

As these are downloadable from npm with their names with different sizes. In which scenarios we must downloads tanstack react query and for which react-query.
As far as I can tell the author chose to publish the new v4 version on #tanstack/react-query whilst keeping the v3 version on react-query.
So most likely, you want the latest version, which is #tanstack/react-query.
This is detailed here: https://tanstack.com/query/v4/docs/guides/migrating-to-react-query-4#react-query-is-now-tanstackreact-query

How to update statsmodels to 0.13.0.dev0 version (to use OrderedModel module)?

What I was trying to do?
I was trying to analyze data using ordinal logistic regression. For that, I tried to import OrderedModel from statsmodels.miscmodels.ordinal_model as suggested by this doc.
Then, what is the problem?
After execution of the above mentioned import statement, I got the following error.
No module named 'statsmodels.miscmodels.ordinal_model'
How did I try to solve the problem?
First of all, I checked the statsmodels version, I am using. I find that I am using the latest version (0.12.1), available in Anaconda. From this doc, I perceive that I will need to use 0.13.0.dev0 version to get the OrderedModel module, as in v0.12.1, there is no folder/file named OrderedModel. However, I do not find any way to update the statsmodels to 0.13.0.dev0 version.
Then, my question
How can I update statsmodels to 0.13.0.dev0 version so that I can use OrderedModel module?
Note: I know that in Python, there are some other ways to do ordinal logit regression. However, I want to use statsmodels due to it's nice summary of analysis.
Thanks in advance!
You can install a recent build from the nightly wheel repository hosted on Anaconda.org.
Run pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple statsmodels.
It looks like you will need to compile from the GitHub. See prior related question here:
How to update to the developer version of statsmodels using Conda?

TYPO3 SolrConnection removed search, what now?

what is the new approach to fetch data from solr within an extbase Service class? we previously did it with
$solrResponse = $this->solr->search('type:car', $offset, $limit);
$this->solr is an instance of
ApacheSolrForTypo3\Solr\System\Solr\SolrConnection
but the method search got removed in the newer version of the extension "apache-solr-for-typo3/solr" (currently using 9.0.2) and now i cant find the replacement for that one.
did someone else got that issue too? why we need that in an extension service? well we index an external graphQL into our TYPO3-solr.
help is much appreciated
We have switched to Solarium as a new PHP Solr Library.
https://solarium.readthedocs.io/en/stable/
or dig here:
https://github.com/TYPO3-Solr/ext-solr/tree/master/Classes/Search
HTH
Olivier

What is the maintained version of google-app-engine mapreduce for python?

It seems that the latest documentation is this one:
https://github.com/GoogleCloudPlatform/appengine-mapreduce/wiki/1-MapReduce
so I assumed that the code in this repo is the latest, is that so?
It seems that in the SDK one can also find a mapreduce lib under google.appengine.ext.mapreduce.
The issue is that I can't find a working example using either one of them, nor a good installation instructions (just putting the mapreduce dir from the above repo doesn't seem to work). Also running the tests fails.
So before digging in and working through the issues to get it working I wonder if I'm missing something obvious?
Any help will be great.
Got response from the Google team that indeed this library is maintain.
Indeed the code example was missing but it was added back now and some of the documentation was updated.
The best tutorial I have found is this one:
http://sookocheff.com/series/mapreduce-api/
Now linked from the official documentation.
One thing that wasn't clear to me in the documentation is that in addition to the mapreduce lib which you need to add to your app code, you need also to add the dependencies:
simplejson
cloudstorage
graphy
appengine-pipelines
the code comes with a build.sh which does it on the some code but you need to do it your self if you are adding the mapreduce lib to your code project.
To use the lib you need to add just this folder to your project. Then use these imports:
from mapreduce import base_handler
from mapreduce import mapreduce_pipeline
This is a good start point.

Resources