text
string
meta
dict
Q: How to get installed File Explorer verbs for certain files I am working on a module for FOOBAR2K, a music player. So that it can be controlled and used from the terminal, For example Get-FooBar -status: Name Value ---- ----- Artist Antonio Carlos Jobim ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Triggering cascading dropdowns once first finishes I have multiple dropdowns that are populated on page load via REST. I have functions that grab the 2nd set of options when the first one is changed. This works fine. My issue is when I load a historical entry and try to set the selected options, the first one is set...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Perl how do I dynamically alias a sub and pass it arguments? In Perl how do I dynamically alias a sub and pass it arguments? Or How do I alias a sub to another sub in a blessed object? I have an array @files that I would like to all become subs that call sub log with the name of the file appended to @_ Sample code w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Cannot detect file in internal storage with Java I have Android Studio with an emulator I copied the file mobilenetv2-10.onnx to /sdcard/Download int he emulator by dragging it on top of the window I can check the file exists on device with View->Tool Windows->Device File Explorer However, when I run the fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add java script and css style files to wix site? adding HTML code is easy. in wix: click on the + Add > Embed Code > Embed HTML. and you can type a code in a small window or paste some HTML code. but what if I wrote some code on visual studio code and I have 3 files: index.html, app.js, and style.css and I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In Swift, how can I calculate the area of an arbitrary closed UIBezierPath or CGPath? I would like to calculate the area of an arbitrary, closed CGPath or UIBezierPath in Swift. I will have multiple paths (shapes), and I would like to be able to tell the relative areas of these shapes. The shapes may have straight o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: best approach to linking two c libraries with mangled symbols I have two c libraries I'm trying to link, for example in liba there is a function int foo_a(int a) { return a + 1; } which is called from libb but though a redefined but fully equivalent symbol, for example int b = foo_b(1); linking these results in mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Position : Sticky not working as expected I have a very simple code , but in this code , position sticky property of CSS is not working as expected , please help HERE is the html code <div class="parent"> <div class="child1"> </div> <div class="child2"> <div class="first">SOM...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Numba: how to get indexes for all rows that contain at least one nan values? Suppose I have a numpy 2d array (m by n), I want to get indexes of all its rows contain at least one nan values. It is relatively straightforward to do it in pure numpy as follows: import numpy as np X = np.array([[1, 2], [3, np.nan], [6, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: For a cron job set to run at */n, does midnight count as 24 or zero? Zero is divisible by any number I have done some searching and not found this precise question on StackOverflow. Say my cron job is set to run at hours */11 It will run at 11 AM and then at 22:00 or 11 PM. Will it run again one hour later at midnig...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Printing out character properties returns a blank table? In Roblox, I'm trying to print out the full table of properties from the character but when I do print it out, the table is empty. I tried waiting for when the character was created and then getting its children, and I was expecting it to print out literally e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to invoke a local lambda function from sam local api I am running a api with aws-sam that points to a flask based lambda function which is my app. Here is the template.json for sam: "Flask": { "Type": "AWS::Serverless::Function", "Properties": { "CodeUri": "api/", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sample last N days per group data using PySpark I am trying sample last 180 days of data per serial number from 10 years worth of data. My approach was working fine for the following toy data. But it doesn't give me the desired data for the real dataset that I am working with. Here is the toy example: I wanted to ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React Pagination doesn't work after I fetch users with query parameters in my api I was following this tutorial for React Pagination in TypeScript and I encountered some errors along the way. When I implement my own api and api query parameters in the fetch function the buttons for traversing the pages don't render ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Feed Forward Neural Network Backpropagation Training Fails I've recently decided to put some effort into actually understanding Neural Networks. I did some work with them back in University but I never fully understood them and going back and looking at my old code is nearly impossible to learn from (poorly document...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Child process not killed when starting another one immediately I have the following functions let process = null; const runCommand = () => { process = spawn('some command', [], { shell: true, stdio: ['ignore', 'ignore', 'pipe'] }); } const killProcess = () => { if(process !== null) { process.kill('SIGKILL'...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change the opacity/transparency of a band in an image in python? I have a png image consisting of 4 bands (RGB and a mask). I want to visualize this image in a way that the RGB color image comes in 70% opacity/alpha and displays the mask band with an opacity of 30%. input png made of 4 bands RGB bands: Mask...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Error while executing Invoke-Sqlcmd on Win server I want to update database with my migration located in "C:\migrations.sql" for my ASP.NET Core app with ef core. I'm trying to execute below command in windows server power shell: Invoke-Sqlcmd -ConnectionString "Data Source=.\SQLEXPRESS;Initial Catalog=testApp3db;In...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do I install axios only once, or do I have to install for every project? I can't find a clear answer anywhere, but I need to know if I have to install axios only once and can then use it in multiple projects, or do I have to install it for each project?
{ "language": "en", "url": "https://stackoverflow.com/questions/75575215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: What is this "Secure Browser Monitor"? I'm using a Mac Silicon. What is this "Secure Browser Monitor"? It's supposed to be from unidentified developer? When I click the "i" on the right side, it leads me to the "LaunchAgents" folder (see image below) and highlights the file "com.testsys.SBMonitor.plist".
{ "language": "en", "url": "https://stackoverflow.com/questions/75575219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Read table from a website into R Studio and create a dataframe with the info I'm working on project that requires a table I found on a website to be read into R studio and formatted so I can create graphical representations of the data. I have been attempting to do this via the magick package using the image_read an...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error in MATLAB code while trying to read file from muliple CSV files I am working on a MATLAB code to plot some CSV data of Radio frequencies from some drones. All the CSV files are in a folder. But the code is showing some error. The code is the following, and I have also given the error. This is the code I tried:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to request a google API OAuth2 token that works non-interactively with R httr? I want to create a google slide presentation from a non-interactive R script. I got this to work interactively with the following setup and functions: # setup: # create a .secrets/ directory in the working directory, which contains a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to click on a button containing desired text with pyppeteer? I'm new to Pyppeteer (and programming in general) and I'm trying to get pyppeteer to click on the right buttons on a calendar so I need it to detect the button with the correct month. From what I've googled, I can use this code to find the right button...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why if one class forms a composition with another class, a different class can be asocciated with the composed class? Look at the following example: The class named Fruits forms a composition with the class named Apple. That means that apples will be only instantiated when some fruit object is instantiated. Now my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a Π‘haracter Π‘ontrol script based on specific numeric variables? I am not an experienced programmer, especially in Unity and c#. But I found a unity project on GitHub (https://github.com/hubertgdev/mindwave-unity) in which, using the Neurosky Mindwave 2 BCI device, you can control the explosion of a bom...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Store Emojis in char8_t and Print Them Out in C++20? I just now heard about the existence of char8_t, char16_t and char32_t and I am testing it out. When I try to compile the code below, g++ throws the following error: error: use of deleted function β€˜std::basic_ostream<char, _Traits>& std::operator<<(basic_os...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any way to put a scrollbar inside a menubuton in Tkinter? I have been trying to make an application in which you can choose between several fonts for a text. For this I have been using Tkinter and in the main window I have a menu button with all the possible fonts that you can choose from. There are about 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: avoid ellipsis in Html tags (VSCode) I can't see the content of HTML tags until I hover over the ellipsis, how can I get rid of this?! I search about that and play with the setting and I can't find a way to turn off this Annoying feature!! A: the case of this ellipsis is the Inline fold extension A: This behavio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I store a subshell PID in a variable so that I can kill the subshell and its background process later? So, let us say I am running a subshell with a background process as follows: (command &) I want to be able to store the PID of this subprocess into a bash variable so that I can kill the subshell and its r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: package get installed under the include folder and not under site-packages I am trying to install a package (more specifically diplib) with conda install -c conda-forge diplib but for some reason nothing is added to envs/env_name/lib/site-packages. The command runs fine, no warnings/error at all. Everything looks no...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to prevent EntityManager.persist from committing to the db until manual flush call and not requiring @Transactional? I am a bit confused about how Hibernate handles some things. I have a repository class in which i have a method that uses persist from EntityManager so it gets added to the managed state and persi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Boot Authorization Server giving Invalid Client Error for Client Credentials grant type with client secret basic auth method I have Spring Boot Authorization Server (version 1.0.1) running. When I set the client authentication method as client_secret_post at the backend and send the following request via Post...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: module import of same folder says not found when called from outside folder The file layout looks like this . β”œβ”€β”€ modules/ β”‚ β”œβ”€β”€ module1.py β”‚ └── module2.py └── main.py module2.py: print('hello world') module1.py: import module2 when running module1.py the output looks like this "hello world" main.py: from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Yii2 Attempt to read property "id" on int I tried implementing Transactions using example below on Yii2 inside my Model class. <php $transaction = $connection->beginTransaction(); try { $user_model=$connection->createCommand() ->insert('tbl_user', [ 'name' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RawRabbit 1.10.4 Retry configuration I started to use library RawRabbit, everything was great until i wanted to configure somekind of retry mechanism. In documation it looks simple: We configure client: var client = BusClientFactory.CreateDefault<AdvancedMessageContext>(); then just use context for that. client.Sub...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Zip.js unzip nested zip Im struggling to understand how zip.js can unzip a zip within a zip. The solution is a simple website that is very similar to the demo read zip site, I can get it to work by unzip, downloading and the unzipping the downloaded file but want unzip the nested zip in same action without human int...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: ViewChildren change text content for an element added dynamicly I want to change the text content inside a span property by accessing it by an Id. When the spans elements exist already, I am able to change the content after hitting a button, but when the spans elements are added dynamicly, the text content does not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jsp:setProperty - JasperException unable to convert string to class [java.time.Year] I've got the following JavaBean, with a java.time.year variable (this value is meant to be extracted from a MariaDB database, within a table with a Year attribute). public class Association extends ParamBD { private int id; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Unable to install my rails 6 app on heroku stack 20 I'm updating my heroku stack from 18 to 20. But I'm facing issue with bundle install! I'm unable to install norogiki 1.10.10 which is crucial for my application what is the best course of action for me! P.S I've a huge codebase and It's not possible for me to upgra...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Sometimes while loop continues after meeting condition So I'm learning python and there was an exercise to write code for blackjack. It isn't 100% finished but it's working. (currently I'm working on fixing some issues, I discovered global calling only 5 mins ago so the code isn't streamlined yet, and I know that i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: MSW (Mock Service Worker) + Vite: Uncaught ReferenceError: require is not defined I'm installing the service following the steps at the official docs: https://mswjs.io/docs/getting-started/install This piece of code: if (process.env.NODE_ENV === 'development') { const { worker } = require('../tests/mocks/browser')...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: initiateAnalysisExport () Method with OBIEE web services not returning queryID I'm trying to use the webservices API in OBIEE with the initiateAnalysisExport() method of the AnalysisExportViews service in OBIEE 12C. I can send the API request without any issues, but the completeAnalysisExport and queryID fields in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nuxt instance unavailable when trying to run useRuntimeConfig in a file within utils directory during server side rendering (SSR) I'm building a website in Nuxt 3 for frontend with SSR, and Laravel in the backend. In the Nuxt 3 project, I have an ApiBridge.js file in the utils directory that I use to organize API ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Symfony: is it fine to instantiate an entity in the controller? One of the SOLID principles is Dependency inversion. As I understand it means that I shouldn't instantiate other classes in my code and pass them to the constructor. Is it a violation of this principle when I write this? UserController extends Abstract...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Interservice communication issue between frontend and backend services on ECS Fargate with CORS error and ERR_CONNECTION_RESET I have ECS fargate cluster with two services, one frontend(express+vite.js) running in a private subnet which can be accessed using internet-facing ALB. backend service(node.js) running in s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Add a progress bar to dataset read using flow_from_dataframe() Good day I'm using a huge image dataset and loading it into tensorflow using flow_from_dataframe. My machine sometimes get a really slow disk reading that can be more than 6hours at times. I would like to add a progress bar to flow_from_dataframe() call ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to change adafruit hid keyboard layout I built a rubber ducky with a Raspberry pi pico. The problem is the keyboard layout is in US but i would like to change it to Canadien layout but don't know how to do it. I use circuitpython and ada_fruit. I tried to use the different keyboard layout in https://github.com/N...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: plotting hourly measurements per day in subplots for each day, with data from a single dataframe I have a dataframe with a single hourly measurement for an entire month and I'm trying to plot each days measurement as a function of time, in a separate subplot for each day. The dataframe looks like this. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Query for Related Posts by Tags in Common Model tags - name - pid (short for post_id) (fk = name + pid) posts - id - title - content (all posts have minimum of 3 tags) ... Function create function get_related_posts(post_id uuid) returns setof posts language plpgsql as $$ begin return query select ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spyder5 launching but not displaying after update to Windows 11 My Windows computer recently went through an OS software to from Windows 10 to 11 Home. Prior to the update, I've been working with Spyder using python with no conda. To run the Spyder app, I always run spyder in cmd, and to manage packages I always use...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to allow ISO dates for DateOnly in C# 6 / 7 I have a React app that tries to send a PUT request to my C# backend. I am struggling, because for some reason my API won't accept whole model if the date format in one of the properties isn't exactly YYYY-MM-DD. But JS apps serialize Date to a full ISO format by defau...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filtering not working in some of the Datatable Columns of the library PrimeReact in react I am using the DataTable of the package PrimeReact but filtering is not working in some fields please how can I fix this problem? I tried upgrading the version of PrimeReact but I found many problems related to the whole React ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to loop through orderID with x order_lines in python there is json file as below: { "orders": [{ "order_id": "123456-A", "order_lines": [ {"order_line_id": "123456-1", "order_line_id": "123456-2", }] } ] } as you see one order has two different order lines as follow 123456-...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: SQL Query ORACLE select all devices ordered from most expensive ones to cheapest Hi I have this db structure db structure and I need to select all devices ordered from most expensive ones to cheapest. Output should have serial number, maker, price, type but the maker attribute is on the product table and I don't kno...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I transform the location of a UserControl set on an Items Control? I've got an ItemsControl and I'm attempting to set a UserControl in a specific location on this particular ItemsControl. It is binding fine and is clearly on the ItemsControl but it is stuck at 0, 0. What am I missing here? Here is the UserCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is wrong with my tessellation shaders? I implemented tessellation shaders that I haven't been able to get working. The error message I get is enter image description here https://i.stack.imgur.com/M9MRm.png This is what my window is looking like enter image description here https://i.stack.imgur.com/eYW5B.png T...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Exception in thread "main" java.lang.IllegalArgumentException: wrong number of arguments I am facing this problem, I am trying to loop all my methods from one class to another and I did do that, but I have 2 loops where one gets executed from the end to the beginning and then the other one does not get executed. Thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Single tab is not stretching full on the tablayout I have created a view pager with TabLayout. Now the issue is if I have 2 or more tabs then everything is fine. But if I am having only one tab then it is not covering the entire screen width.
{ "language": "en", "url": "https://stackoverflow.com/questions/75575305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cloudfront can't access S3 Bucket (different bucket from S3 static hosting one) Currently I'm getting a signed url for a s3 bucket and performing an PUT request from angular. It works locally and when S3 bucket is public it works from CloudFront, but doesn't work from CloudFront when bucket isn't public. This is a d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scroll to bottom of listview on page load in flutter I have a chat app. I want to display the last message at the end of the view list when the chat page is opened. Like WhatsApp and Telegram and... I used the following code in the initState and I am getting the following error WidgetsBinding.instance.addPostFrameCa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Can I create a filter with select component in react? I have started to do React pp with the help of firebase. So far I managed to fetch all of the data and implement search functionality. I would like to add a function that searches through a price and title. Could you please help me out? I have set the state a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Property id does not exist on type T typescript Why do I get this error and how can I fix it? Property 'id' does not exist on type 'T'. It comes at row.original.id export interface ITable<T> { columns: any; data: T[]; with_transition?: boolean; onClick?: (price_id: string) => void; } export default functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Container failed to start error when running RStudio server with ShinyProxy I'm trying to run RStudio server using ShinyProxy. I can run a container without ShinyProxy fine like this: docker run -p 80:8787 -e DISABLE_AUTH=true rocker/rstudio when I navigate to localhost, I can see RStudio server in my browers. Now,...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My GitShanges does not appear in visual studio 2022 visual studio image My GitShanges does not appear in visual studio 2022. Would anyone know how to solve this?
{ "language": "en", "url": "https://stackoverflow.com/questions/75575320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Unit test of Flask Blueprints shows low coverage I'm writing unit tests for Flask simple app with blueprints so that tests are counted in the test coverage report (to reach finally 100% of test coverage). Unit tests use similar/simple pattern of app.test_client() calls with get / post methods. But even tests are com...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to record each fold`s validation loss during cross-validation in Optuna? I am using Toshihiko Yanase`s code for doing cross validation on my hyperparameter optimizer with Optuna. Here is the code that I am using: def objective(trial, train_loader, valid_loader): # Remove the following line. # train_load...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best practice: Python mysql.connector I am wondering what the best practice is for MySQl's Python connector. I intend to write a number of functions to interact with a database. An example of these functions would be: create_user, get_user, update_user, delete_user. Which of the code snippets below is accepted? S...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trouble with adding two entries for a tiny DIV SOLVED Quick update 1: problem fixed by myself Insight: forgot I was a developer myself LoL, turned on debugging mode then problem became clear and solved it I hired a designer to create our website with some fancy CSS files. 3 CSS files and have lost contact with him. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ProductDetailsResponse returning no products in Flutter I am trying to set up a Google Play Store subscription in a Flutter app. I am using the in_app_purchase: 3.0.7 plugin. * *I have published my app in the closed testing track in the Play Store. *I have setup my account as a tester, and I have joined the testi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python SELECT with parameters: The data types text and nvarchar are incompatible in the equal to operator Im trying to find out if an entry is already in the database like so: cursor.execute('SELECT id, text FROM dbo.tags WHERE text = ?', str(tag.text)) row = cursor.fetchone() In Microsoft SQL Server Management...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Heart animation My heart's animation doesn't work, I'm a rookie front dev and never use the animations, I test a basic animation like a circle doings things, and it works but in my heart code my animation don't work. The heart is static, and I don't know what is happening. Here is an image: This is my code <!DOCTYP...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Azure Function App cosmosdb input binding - read from nested json I have the following json sent to an Azure Function App: { "a" : { "nested" : { "object" : "hello_world" } } } Within the function.json I would like to fetch a document based on the object value (hello_world in this example) : { "script...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is PG::ConnectionBad error not being caught in my Rails middleware rescue block? I'm developing a Rails 6 application that includes a custom middleware called PGConnectionErrorMiddleware. This middleware is responsible for catching PG::ConnectionBad exceptions and returning a custom response when they occur. How...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: send notification to all devices using FCM I Using firebase realtime database to store tokens, and I can send notification to one device which I specify it but when I read all tokens in List of string and try to send notification to all the tokens by send the list of string it just send to one device the first any o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I extract filtered data from a table? Is there any way for me to filter a data table into a more specific table? for example if I had a data set that has multiple entries, and I was only interested in one value, such as the people who responded with yes on a given year. let's say 2010 and "yes" response. wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rewarded Ad is not loading in listview.builder (card) I am putting rewarded ads in my flutter app, so people can get credits when they are watching a ad. I first tested it the main page of my flutter app (This ad is called by an button inside the appbar) here the ad was loading correctly if you press the button twic...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to render text in bold in next-share NPM on email content component I'm using the next-share NPM EmailShareButton component. In the body im trying to bold the text with a but its rendering object Object instead on the email.. How can i highlight a text in bold in const when it render out in the email service.. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I configure my tools to ignore or prevent updates to the execution_count field in a Jupyter Notebook I'm using the Jupyter extension (v2022.9.1303220346) in Visual Studio Code (v1.73.1). To reproduce this issue, make any modification to the notebook and check it into git. You'll observe that you get an extra...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stable Diffusion error - HTTPSConnectionPool issue on Google Colab I'd had this stable diffusion instance working just the other day, and all of a sudden I'm getting this error: HTTPSConnectionPool(host='3ec07a21-da92-4ac4.gradio.live', port=443): Read timed out. (read timeout=3) I'm running it on google colab, here...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-8" }
Q: Property 'signInUserSession' does not exist on type 'AmplifyUser' but exists at runtime I'm using the useAuthenticator hook from AWS Amplify and I'm confused why certain properties do not exist at compile time. I get the error Property 'signInUserSession' does not exist on type 'AmplifyUser'. However, when setting ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flask app is running correct function, but not rendering template I have a flask app with a template. I am attempting to send via post several items collected by javascript when the user clicks a button. When I post my data to /confirm, the print statement executes, but the render_template function does not render a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Python module import problem with "from import" I have been working in python more than 3 years, but still, imports are nightmare for me. I don't understand it. Here is my app structure: discord_renew β”œβ”€β”€ __init__.py β”œβ”€β”€ logger.py β”œβ”€β”€ utils β”‚ β”œβ”€β”€ __init__.py β”‚ β”œβ”€β”€ manager.py β”‚ β”œβ”€β”€ exceptions.py β”œβ”€β”€ repos β”‚ β”œ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create unit test for in-memory datastore? I wanted to create some simple REST API. I decided to create my own in-memory datastore which implements such interface: type datastore interface { Add(*Element) error Get(ElementID) (*Element, error) Update(*Element) error Delete(ElementID) error ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible for usercontrol's designer to set relevant information on a control inside a child usercontrol before runtime To start off, I clearly see the text that says not to modify the code with the editor... I am trying to implement a simple user control that can include relevant information on the designer wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ActionController::InvalidAuthenticityToken (Can't verify CSRF token authenticity.) in Rails 7 while adding omniauth-google-oauth2 Following this video link - https://youtu.be/CnZnwV38cjo for adding the omniauth-google-oauth2 but after doing the exact things as suggested, still getting the ActionController::InvalidAu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is INT 0x29 (29h, 41) on Windows x86-64? What does this x86-64 assembly code do? What is interrupt 41? MOV ECX, 0x7 INT 0x29 A: https://learn.microsoft.com/en-us/cpp/intrinsics/fastfail?view=msvc-170 says: Internally, __fastfail is implemented by using several architecture-specific mechanisms: Architectu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Interaction with image from gallery Have used the multiimage picker to select multiple images from the phone's gallery and made a gallery in app to save the photos. My question is how do I manipulate these photos, as they are unclickable currently? I'd like to be able to enlarge them and also delete them on pressed....
{ "language": "en", "url": "https://stackoverflow.com/questions/75575363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Forcing copy constructors of child classes to lock mutex declared in base I have a base class with a mutex since all inheriting classes need the ability to lock state. I want to force all children copy and assignment constructors to lock the mutex, ideally without having to specify so manually in the child implement...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mongoose find is not filters I try to filter the data but find() ignores the filter and displays all the information. const getAllUsers = async (filters) => { try { const uses = await User.find({ UserName: '1234' }); return uses } catch(err) { console.log(err) } }; Can someone ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: WFLYEJB0406: No Jakarta Enterprise Beans found with interface of type Can you help me please? I'm deploying a simple application on windfly 27.0.1. First, I have an interface called IGenericDAO: package br.com.lucasatolini.dao; import br.com.lucasatolini.domain.Persistence; import java.io.Serializable; import java...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BootstrapError, Parameter "form" should contain a valid Django Form Views.py from django.shortcuts import redirect, render from .forms import SignupForm from django.contrib.auth import authenticate, login # Create your views here. def sign_up(request): if request.method == 'POST': form = SignupForm(req...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prefect - schedule multiple redshift (plpgsql) stored procedure in Prefect How can i schedule multiple redshift (plpgsql) stored procedure in Prefect? For example: CALL stored_p_1() ; CALL stored_p_2() ; CALL stored_p_3() ; I tried importing: from prefect.tasks.aws.redshift import RedshiftExecuteQuery but it is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why i am getting error zsh event not found on sed command sed "s/map(\x27t\x27, \x27<Esc>\x27, \x27<C-\\\\><C-n>\x27)/map(\x27t\x27, \x27<Esc>\x27, \x27<C-\\\\><C-n>:q!<cr>\x27)/g" ~/.config/nvim/lua/core/keymaps.lua zsh: event not found: <cr>\x27)/g Can you please guide me. What’s the mistake, I am making? I want...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is printing in loop faster in Python than Rust? I'm currently learning Rust and did some testing to see which langage would be faster to print in loop. It appears that Python prints faster than Rust but I don't the underlying causes. Rust is said to be very fast, so why would Python be faster? Python: x = 0 whil...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: CSS cascading grid - expand one element without rearranging I'm trying to achieve a layout of 2 or more columns that are based on the number of elements instead of fitting based on their sizes This question has been asked a few years back but never answered: CSS columns - expand one element without rearranging The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dark mode changer I have the following code: <!doctype html> <html> <head> </head> <body> <div id="color-wrapper"> Hello world </div> <input id="dark-mode" type="checkbox"> <label for="dark-mode">Dark mode</label> </body> <style> :root { --bg: pink; } #dark-mode:checked ~ #color-wrapper { --bg: ora...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python function to create dynamically calculated pandas column I have the following sample dataframe: hand player event amount stack_size #345 paired win 144 552 #345 paired bet returned 72 552 #345 paired bets 72 552 #345 paired bets 43 552 #345 paired raises 18 552 #345 paired stack 0 552 #345 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is the activator class not running the code? I am using the WP Plugin Boilerplate and I am requiring files and admin notices within the activator class but my Kirki panel is not showing up in the customizer and the admin notice isn't appearing. I am also not getting any error messages. Also PLUGINPATH is set to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a better method to grab words from DOM Right now, I am working on a simple-ish chrome extension. At this stage, I'm trying to: * *basically grab all of the individual words on the DOM (returned as an array) *Randomly select 10 of them. *Check to ensure that they are in fact valid english words (handled ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75575389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }