text
string
meta
dict
Q: How to Redirect User Login to homepage and when user login on article then user keep in the article I use plugin wp-member for membership website. But I use this code for redirect user to homepage after reset password and login. But when user access article and login, user redirect to homepage, so I want to keep use...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is linear regression? I wanna learn linear regression, but having no idea to start. I try to find a course to learn machine learning. They tell me that I can get a great couser in the stack overflow.
{ "language": "en", "url": "https://stackoverflow.com/questions/75611270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: Why two slice have same address, but not have same value in Golang? In go source code we can see this type declare: type slice struct { array unsafe.Pointer len int cap int } So I thought s := make([]string, 0) is equal to s := &slice{}. But when I tried to run these codes, I am confused: s := make(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to make radio buttons to be selected on the form? My radio buttons are not selecting when they are clicked and there no errors found on the inspect element from the browser. What could be the problem? because i used the correct name and bind them on the jquery function call. `// Javascript /** *@author:Gc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: R studio console not viewing Stata Variables i would like to view stata variables in R studio Console, i have Installed LessR package but to know avail Tried to install Packman & LessR packages, i am only seeing the Variables in Global Environment A: I donΒ΄t know if I understand the question. I supose you have load...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get a data attribute's name in with JQuery? I am using data attributes as selectors in JQuery. I want to return the name of the attribute when an element is clicked, eg: $("[data-hello-world], [data-foo-bar]").click(function(){ console.log($(this).data() + " was clicked"); }); But whilst I can retu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can I use boolean variable in this method to exit out of while for-loop? I have a method that finds the position of a specific element in a queue and returns the position. I am finding the position by using the n counter and incrementing every time until I find the element and returning n which would be the posi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating an email alert when circular posted in website I NEED HELP! I need to make something so that anytime a circular is posted in a section in the form of a PDF or anything, I'll receive an email. Currently, my college's website doesn't have an email subscription feature, so I can't follow the circulars there. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to write Junit for global/instance variables for Hook or interceptor classes I have below code in project : public class KarateHook implements RuntimeHook { private Set<String> scenarios = ConcurrentHashMap.newKeySet(); private static final Logger logger = LoggerFactory.getLogger(KarateHook.class); public Kar...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: call hive in graphql I would like to retrieve sessionToken and authToken from Hive, then put it inside GraphQLClient main.dart GetIt sl = GetIt.instance; void main() async { // Register Service locator await initAuthServiceLocator(sl); .... await sl.allReady(); runApp(...); } initAuthServiceLocator Fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get list of validators which delegator delegated in Near protocol I want to get list of validators which delegator delegated in Near protocol. I can get delegations list for validator. How can I get validators list from delegator in Near?
{ "language": "en", "url": "https://stackoverflow.com/questions/75611286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retain aspxtextbox value after postback I have a set of textbox that allows the user to auto compute the total. However everytime I click the radio buttons, the textbox return to its original value which is 0.00 Below is my JS code: <script> $(document).ready(function () { $(this).keyup(function bb() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TypeConverter unavailable in Maui? So I was trying to create a TypeConverter in Maui. And apparently, the methods aren't virtual anymore. How do I convert this Xamarin Forms code to Maui? Also TypeConversion seems to be missing altogether, Tried to find any MS documentation on this, Well nothing there either, I am g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to keep state data after refresh the page in nuxt3 Nuxt3 State data loss when refresh the page. I also use localStorage and sessionStorage but the data is loss. How can i keep state data after refresh the page. This is my source code. enter image description here A: Just trying to explain the localStorage. I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Auth0 Logout not working in Spring Boot 3 I am following the QuickStart for auth0 with Spring Boot 2, but my project is using Spring Boot 3, after changing the deprecated methods logout doesn't work anymore. Security Config: import org.springframework.context.annotation.Bean; import org.springframework.security.conf...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does Angular handle unused modules in NgModule.imports? import { NgModule } from '@angular/core' @NgModule({ imports: [ AModule, BModule, CModule, DModule, EModule, FModule, GModule, IModule, JModule, KModule, // ... JustModule, ], declarations: [ImportCompo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jmeter assertions with a file I have a Jmeter script which compares the actual response Body with a expected Response body I have added as "Pattern to Test" in Response Assertion. Is there a way , I can save this body to a external file and compare that with the Actual response in jmeter? A: * *You can save JMeter...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I Secure a `credential.json` file in a Production Server I am connecting to a google service via a (downloaded)credential.json file, following is my snippet: from google.oauth2 import service_account GS_CREDENTIALS = service_account.Credentials.from_service_account_file( os.path.join(BASE_DIR, 'credentia...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handy way to combine vectors of different lengths I am trying to build a single vector that holds elements of several vectors with different lengths. As an example, let's consider three vectors: x <- rnorm(5,0,1) y <- rnorm(2,0,1) z <- rnorm(3,0,1) To get this done in a handy, I used the sapply function as follows ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Log Normality Tests in R I am using R. I have a certain dataset x for which I have to check whether it fits to the log normal distribution. I am using the ks.test which is in the base package, and the nortest package which has Chi-square, Anderson Darling, Shapiro Francia, CVM etc. For the functions in the nortest p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: find query slug from looker studio I am trying to find the query slug from looker studio. First thing I am confused about that is looker and looker studio still a two things, as I learned google studio and looker have been unified. I am trying to integrate looker studio with react application and following the below...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: call method from java fragment to kotlin fragment? can I call method from java fragment to kotlin fragment? I want to call onclick method from java fragment to kotlin fragment, which when click, kotlin fragment works the same function as java fragment is it possible? A: I'm not sure if I got your question, but Kotl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xero API contact list using summaryOnly removes contacts Issue: When using the /Contacts?summaryOnly=true endpoint the payload list does not contain the full list of contacts. I have a a call that performs a lookup to get all the contacts then use code to partial match the string used to search to the name. Kind if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make clap ignore flags after a certain subcommand? Let's say I'm writing a command-line program called foo, using clap as the arguments parser: #[derive(Debug, Parser)] struct Cli { #[command(subcommand)] pub command: Commands, } #[derive(Debug, Subcommand)] enum Commands { Run { execu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Functional programming pattern for performing a function once after fold/reduce? I'm new to functional programming and was wondering if there is any kind of formal pattern/data type where 1) we fold/reduce with a monoid, 2) run a function once to get some summary out of the reduced value. For example, to get the mea...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: C# Windows Form - Opening Forms Using Main Thread and User Thread Open Form (From1) using user thread and then open Form (Form2) using main thread. But Form1 is always on top position Out put come like this: using System; using System.Threading; namespace Load { public partial class Home : Form { Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: (Compose MD3) How do maintain shadow of Elevated Button when changing its content color? I'm using Material Design 3 and trying to make an Elevated Button with Compose. I've noticed when I try to set a color on my Elevated Button, it fails to have any shadow. @Composable fun PrimaryButton( modifier: Modifier = M...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to combine OFFSET and PARTITIONBY within many groups have different records by using DAX Power BI I face to this problem when I want to lag 1 rank each row for each group, but when I try to use offet I don't know how to implement this. You can see the detail in the picture my solution. Please help me because I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my code on firebase take 30 minutes to deploy I have been using Firebase for a while now and recently I have had this problem of it taking 30 minutes to save which has really slowed down development
{ "language": "en", "url": "https://stackoverflow.com/questions/75611328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Mininet hosts ping real hosts unreachable Please help with a problem. Mininet hosts are not pinginging my real network interface. (ping 192.168.88.228) Only the switch has access to it. I found in the official Mininet documentation, that Host interfaces are only visible from within the host itself, but switch data p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Service injection issue with HK2: why doesn't @Inject work despite @Contract on interface and @Service on implementation? I am using the HK2 framework to manage my services, and I have annotated my service interface with @Contract and the service implementation with @Service. However, when I try to inject the servic...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I publish my unity game on my own website or other people's website? I'm Creating a Game using Unity. That game should finish in a month. But after finishing where should I publish it. If I publish it to stream then It will charge me $100. But I don't want to spend that much because I'm beginner In game devel...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Issues running Spring Boot application within an HAProxy Docker image I am attempting to run multiple instances of a Spring Boot application within an HAProxy docker container and attempting to load balance it in the same container. This would be preferred as we want to use a single image solution if at all possible...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I pass an array of strings to a FastAPI post request function? I have this code for a FastAPI app. Right now it's just supposed to take in an array of strings and return them. from fastapi import FastAPI from pydantic import BaseModel class Item(BaseModel): name: list[str] app = FastAPI() @app.post("/"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Have a simple .net Maui app and the hot reload for android in VS keeps failing to initialize I have a simple Todo app that I am working on through a tutorial. I have been using the Windows Machine hot reload fine. But I added in some swipe controls so I wanted to test it in the android emulator. I have the newest ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does a Hive MAP JOIN operator run on a Reducer? I have: set hive.exec.dynamic.partition.mode=nonstrict; set hive.tez.container.size=8192; set tez.runtime.io.sort.mb=3276; set tez.runtime.unordered.output.buffer.size-mb=819; set hive.auto.convert.join=true; set hive.auto.convert.join.noconditionaltask=true; set h...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL throws syntax error where the code has FOR XML PATH(''), TYPE).value('(./text())[1]', 'NVARCHAR(MAX)') Getting the following error: Parse error at line: 69, column: 33: Incorrect syntax near 'FOR'. Not able to understand what the issue is Is aggregate string concatenation not supported? Code: SELECT STUFF...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to push client-side changes to the database? I'm having some trouble phrasing this question properly, so if you need clarification, please ask! Any help is appreciated! I am building a Web App with React.js, Next.js, Prisma, and PostgreSQL. In this web app, users can create and edit "projects". These projec...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.Threading.CancellationTokenSource canceling time System.Threading.CancellationTokenSource can be instantiated with or without a cancellation period. public CancellationTokenSource(); public CancellationTokenSource(int millisecondsDelay); I use this to attach to an HTTP request. await httpClient.SendRequestAs...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Retrieve single record in eloquent Laravel Help me little please. I can't filtering single record. May be or not. // In Controller public function show(Post $post) { $post = Post::with(['comments' => function($query) { $query->where('status', 'active'); } ])->find($post); // can't filter comment...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: i am trying to fetch the whole data based on activity_created_on key from this sample data: my sample data: a = [ { "activity_message": "message 1", "activity_created_on": 1677672546 }, { "activity_message": "message 2", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sharing information among several tables Newbie here. I work for a homebuilder and I'm trying to make an Excel workbook (Office 365) to keep track of buyers, addresses, plans, construction, financing, etc., all in different tabs. The book will have the buyers, addresses and plans on table 1. Table 2 will have the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to add Styling to React Bootstrap component and move the sub menu in dropdown to the right? I need to move the sub menu (the children) to the left of their parents when they open. following is the code . I also want to change hover effects but some of the styles getting overwritten , sometimes they work but on r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TextInputLayout - How to decrease the spacing between the hint (no text & focus mode) to the bottom line I'm using TextInputLayout to create some layout. <com.google.android.material.textfield.TextInputLayout android:id="@+id/cvvContainer" android:layout_width="0dp" android:layou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fix Property 'on' does not exist on S3 data after upgrading the AWS SDK A previously working lambda is now reporting an error Property 'on' does not exist on type 'SdkStream<Readable| ReadableStream | Blob> when I try to read data. The data is passed via the lambda event as a result of an S3 trigger const da...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Change the purchase price and delivery period to 2 for product number? UPDATE products SET purchase_price = 12.99, delivery_period = 2 WHERE product_number = 3; But it gives me an error. does anyone know why this happening?
{ "language": "en", "url": "https://stackoverflow.com/questions/75611368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to reverse large file in golang? I have a large file, I want to reverse it with GOLANG without consuming much RAM and CPU Example: File named example.jsonl with below content: {"id": 1} {"id": 2} {"id": 3} After the conversion I want to get the file with the content {"id": 3} {"id": 2} {"id": 1} Thank you ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: elastic beanstalk health shows degraded I have created a new environment in elastic beanstalk. It is showing health as degraded. Here is the screenshot: How to resolve it ?
{ "language": "en", "url": "https://stackoverflow.com/questions/75611371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to relate two of the items from my code- the problem that i am facing is importing my image file into codepen and creating a relation between these 2 codes. what i want to do is that when we click the red square I want the bar in the first code to obey the same code as the volume count . i figured out how to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Unable to use FluentAPI in aspnetboilerplate is it mandatory to use DataAnnotation in aspnetboilerplate project? It seems dbContext class doesn't hav onModelCreating method created. Even if we do it manually there are some limited methods are available. Like I am not able to configure one to many relationships.
{ "language": "en", "url": "https://stackoverflow.com/questions/75611373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: React Router v6 and AWS S3 Redirect Rules AWS S3 and React Router don't play well together. There is a good solution that works with older versions of React Router as found in https://stackoverflow.com/a/61375930/15019760 Right now, my AWS Redirect config is: [ { "Condition": { "HttpErrorCode...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting a symbol type to a string Is it possible to convert a unique symbol type, into a string that's more specific than 'symbol'? In the example below the typescript compiler shows the key in object b to be [sym] - which is more useful and more specific than if it showed symbol. Is there any way to replicate t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Failed to get Prometheus port in eclipse ditto I was trying to save the logs of ditto locally and for that, I edited the ditto/deployment/docker/docker-compose.yml.The content of the same is: # Copyright (c) 2019 Contributors to the Eclipse Foundation # # See the NOTICE file(s) distributed with this work for add...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JWT::DecodeError (OpenSSL 3.0 does not support nil or empty hmac_secret): I am still new to building projects using rails/react I am using devise to authenticate the user however, when I login I am getting an internal server error that says JWT::DecodeError (OpenSSL 3.0 does not support nil or empty hmac_secret): as...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VPSDIME to run DOCKER containers with docker-compose Is VPSDIME a viable and reliable option for running Docker Compose with multiple Java apps? I'm planning to use VPSDIME to run a Docker Compose setup with two Java applications, but before I commit to their services, I want to know if it's a viable and reliable op...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how to access the website hosted in EC2 instance * *I created an ec2 instance *Installed httpd server *Started it [ But I can't see the default folder: var/www/html ] *So I created those folders and loaded website files into a folder "digitalex-html" Path: var/www/html/digitalex-html Now how do I access th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why is my bloc throwing an exception condition? All hello, I have a screen, when opened, a request flies to the server, it returns 400 error status to me, but why does it not get into an error state, but gets into an exception, why? I should hit when the status is not 200 in the block (status is OrderFinishError), b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert a list of combination of str list to a list in python I have a list of string like the following, and I want to convert it to the following; could you please help me with that; Here is my list: IN = ['7','8',"['#15140C', '#977E4F']"] And here is the output that I want. OUTput = [7,8,['#15140C', '#977E4F']] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: I am trying to seeedmy data and this is the error I get,please help. I'm using the faker gem rake aborted! ActiveModel::MissingAttributeError: can't write unknown attribute raw_material_id db/seeds.rb:30:in block in <top (required)>' db/seeds.rb:29:in times' db/seeds.rb:29:in `<top (required)>' Tasks: TOP => db:seed...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WireMockRule Stub for RequestBody For Integration tests I'm trying to stub for an external library API, which has webClient config as below return((RequestBodySpec)this.webClient.post().bodyValue(postRequest).retrieve().onStatus.... here postRequest is a Java class object passed as an argument to a method. how sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Find the value present in more than one date ranges I have a table similar to this. I want to find the users active in more than one department at any time in this data. Please suggest the SQL query for this. In the below example, U1 will need to be returned as U1 was active from 2021-04-01 to 2021-12-31 in more tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Many2many fields" error occurs when inheriting the model in Odoo I am trying a Students Module inherited from Contacts (Res.Partner), just to show My Student menu, not adding less. But when Active Module, this error "TypeError: many2many fields my.students.channel_ids and res.partner.channel_ids use the same table ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why doesn't Dart DevTools' Network page show a Response? I'm making a simple call to http://postman-echo.com/get?foo=bar but the Response tab of Dart Devtools' Network page doesn't show anything. Is this a bug or is there something that I need to do to make it show the results by default? Here is the code I'm runni...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RateLimiting in dotnet 7 I have been implementing RateLimiting in dotnet 7, but when it reaches the limit it blocks all endpoints. I only want to block the one requested endpoint by the ip user when it get the limit. This is my code in the Startup file in ConfigureServices: services.AddRateLimiter(options =>...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flask HTML page will not render even with simple route/method I am in a class trying to create a simple Python Flask login/register web page. I was able to successfully create the login page, but no matter what I do, the register page won't render at all. I even removed everything from the register method asking it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create an ordinal number column for a MySQLi leaderboard I have completely reworked this question given that it was not well received... I have a leaderboard system that ranks users based on how many points they have (from first to last). The issue I'm having is that I want to have an ordinal column on the far left ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Web3.py uniswap is status :0 with swapExactTokensForTokens I've been testing swap function with python web3.py on python3. But it is having only status : 0 on receipt. I have tried to use amountin and amountout from getAmountsOut function but it is same. approve = tokenContract.functions.approve(ROUTER_ADDRESS, am)....
{ "language": "en", "url": "https://stackoverflow.com/questions/75611394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: About vuetify v-data table pagination Is it possible to modify v-data-table pagination? In this v-data-table pagination section(next,previous button).Am trying to give functions to this next and previous pagination button. But i don't know how to modify this pagination section in v-data-table! Actually am trying to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Replace Null entry with value I'm looking for a query/script in MS SQL Server that will do the following: Table1 Project Employee Date Comment 1111 007 23-02-01 Found Bad Guy 1111 007 23-02-01 NULL 1112 007 23-02-18 Drank Martini 1112 007 23-02-18 NULL I need a way to replace the NULLs with the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: CS50W Mail issue with reply button eventListener not working got an issue with the reply function of my code of the CS50W Mail project: <code> function read_email(id) { // Fetch the email fetch(`emails/${id}`) .then((reponse) => reponse.json()) .then((email) => { // hide other views and display the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In office Addin, avoid warnings when loading nested properties In office addin, I am trying to pull some data from the current selection, it works fine but it shows some warnings that I don't know how to fix. const myFunction = async (context: Word.RequestContext): Promise<MyOutputType> => { const selection = cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS IoT continuous jobs queued in reverse order I have an AWS IoT Thing Group which includes some in-progress continuous jobs. When a device is added to the thing group, I want the continuous jobs must be processed as the order they were posted. However, look like the job executions are queued into my device in reve...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Excel help to get data from SQL for a particular year based on user input Hi I am looking to get SQL data based on a query in Excel which needs a year input. i.e. My sql query will be as follows: select Col1,Col2,Col3 from Table where year(Col1) = [Year entered in Cell A1] Is there a way i can input the year in a ce...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to ensure a string is a number /* Checks if the inventory is valid. Criteria: Valid if and only if it contains only digits */ bool isValidInventory(string token) { char ch; // Will be used to store characters of a token so that they can be checked individually. for (int i = 0; i < token.length(); i++) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you convert C# byte[] to postgressql bytea using Npgsql So I am having a problem casting a byte[] to a bytea in postgres. I have a program that takes in a password(string) that in converted to byte[] using HMACSHA512. I want to insert my byte[] data into my postgres database. Insert Statement public static int I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: i want to create a filter api with elasticsaerch while user select an item then full string macthing result must be return Requirment is : 1. return all of the available university . 2. when user wants to filter the result and select an university then user will get only one university details what he select. like:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regression Outputs differ in R and In Python when using the same dataset So I ran a OLS regression in python and got a very high adjusted r^2 value (.94ish) so I thought to run it in R, because that usually where I run statistical analysis. Oddly enough I got a normal adjusted r^2 (~0.05). Why would the codes give m...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I don't want to show popup model on past date slot using jquery I am using tui calender https://ui.toast.com/tui-calendar and I want to hide popup model on past dates slots but unfortunatly popup is showing when i click to past date slot please help me how can i hide on past date ? thanks. Jquery $(".tui-full-cale...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: vite4 lib how to package a vue sfc into one file Related plugins * *[X] plugin-vue Describe I use this vite config import vue from '@vitejs/plugin-vue'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], build: { lib: { formats: ['es'], entry: './src/index.js', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting the error that I need to have writer access to this calendar. (Google::Apis::ClientError) RESOLVED The changes to Google Workspace calendar sharing settings took about 2 hours to come into effect. The fix is to share the calendar with the service account and give it permission to manage events. I keep gettin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementing an exported Android Service for use by an App using I am working on an App with a large existing install base and I want to add a new dangerous feature which I would prefer was controlled by a custom permission. This feature is provided using a new Service which is exported to other Apps. I don't wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to plot each team's figures throughout the years on the same line chart? My dataframe looks like this: I'm having trouble making a line chart that would take these numbers plot them throughout the different months of the year and have multiple lines on the chart for each team. I've been trying to use pandas and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Mathplotlib adding dates automatically Why is mathplotlib adding dates to the plot. E.g: 2023-02-15 df = pd.DataFrame() df['YearMonth'] = [202303,202302,202301,202212,202211] df['total_burgers'] = [800,900,1200,1100,1000] df['YearMonth'] = pd.to_datetime(df['YearMonth'], format='%Y%m') x=df['YearMonth'] y1=df['tota...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel interface not found I have the following two classes: My interface inside app/Contracts: namespace App\Contracts; use App\Models\Lead; interface CRMServiceContract { public function generateLead(Lead $lead); } My service class inside app/Services/CRM: namespace App\Services\CRM; use App\Contracts\CRM...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pandas Dataframe - Compare values and find mismatch in each row? i have a df for product price having columns: SKU, Amazon, eBay, Walmart, PS, SPL where values can be null or Price for that SKU. I want to compare PS and SPL if they are non-null then price should match on each row. that means, mismatch is an error SK...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: google sheets formula returning false instead of integer im trying to create a formula in sheets that automatically calculates tax with the Australian tax table. values less than 18201 return the correct integer, but greater than that or less than 180001 return false instead of the correct value. I'm absolutely stum...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I Eas build into an expo organization instead of my personal expo account? my boss has recently made an expo organization so we can start working together more on our builds. He invited me to the organization, and I accepted, however, I am confused about how I build to this organization instead of my personal...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Illegal method call. This session was previously disposed Getting----TransactionSynchronization.beforeCompletion threw exception: java.lang.IllegalStateException: Illegal method call. This session was previously disposed. Note: Getting this error after updating jbpm version from 6.1.0 to 7.35.0 and spring version f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert a string (not a File) to a PDF Blob and then open said file in browser in TypeScript (Angular) I want to take a regular string, let's say, 'hello world!' and convert that into a PDF Blob and then open that pdf in the browser. There are numerous similar posts on here but none of them resolves my specif...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create new data with relation in nodejs using sequelize I want to create User and profile in the same time. This is my user controller const create = async (req, res) => { var data = { username: req.body.username, password: req.body.password, firstName: req.body.firstName, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: struggling to create confusion matrix In decision tree algorithm smp_size <- floor(0.8 * nrow(project)) set.seed(987) train_ind <- sample(nrow(project), smp_size) train <- project[train_ind, ] test <- project[-train_ind, ] m.rpart <- rpart(Churn ~ ., data = train) m.rpart rpart.plot(m.rpart, digits = 3) rpar...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In a summary search, you must sort by a result field with a summary function error I have created saved search to group by pay code type and sum amount. Pay code : Sequence--> Group, Amount--> Sum Sort by Pay code : Sequence ASC when I export this search to script and run, i am getting following error. {"type":"e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: how to make connection between 2 separate transactions in golang In golang i am creating 2 separate transactions. As a part of the first transaction I am creating new records in tables (let's say A). After committing the first transaction, I am starting the second transaction through which I am updating the table B ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to not have @SuppressLint("UnusedMaterialScaffoldPaddingParameter") for Scaffold in Android Jetpack Compose? I have my code setup as below: @SuppressLint("UnusedMaterialScaffoldPaddingParameter") @Composable fun createScaffold() { Scaffold( topBar = { MyTopBar() }, content = {...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Get File List of StartMenu Error: UnauthorizedAccessException I'm trying to get the files list from my Start menu, but when I use these codes, it throws out this error: System.UnauthorizedAccessException. I am in the administrator mode, and I don't know how can I deal with it. string[] InkFileList = Directory.Get...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I best add a kwarg to a function that controls the ndarray axis along which computations are performed? Consider a function that operates on an n-d array. I want to modify it to take an (n+1)-d array, allow me to specify an axis, and have it perform operations on all the axis's n-d slices. For example, I want...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does Stackoverflow censor questions about MS Teams? In today's world, collaborative programming using tools such as MS Teams is crucial. I personally make it a point to schedule at least two half working days per week to work alongside my team. Although MS Teams is not my preferred choice, it is a requirement fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Write a function looping(my_func, interval, limit) Question: Write a function looping(my_func, interval, limit) which takes three input parameters and returns the pyplot object (i.e., plt). my_func is a function passed in as an input (e.g., math.sin). interval is the x-value interval starting from 0 (e.g., if interv...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting Execution Timeout Expired error only for 100 records I have an Azure Time Trigger function whose job is to read excel from FTP and add these details to the database. That excel has around 20K records, and for adding details, I have created a stored procedure that is using MERGE query for insert and update. L...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SwiftUI view does not reload after @State variable changes I have a simple setup like this in FeedView : public struct FeedView: View { var loadFeed: () -> Void @State private var feed: [SwiftUIFeedItem] public init(feed: [SwiftUIFeedItem] = [], loadFeed: @escaping () -> Void) { self.loa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }