instruction
stringlengths
0
30k
null
I am experiencing an issue with the Chewie package where the controls UI is not displaying properly. Specifically, the time overlaps with the slider, making it difficult to read and interact with the controls and also addition options not at the corner. ps: I am using **CustomScrollView** ChewieController( ...
In the My Account > Woocommerce Order menu there is a Pay Now button if the order has not been completed. If you click the Pay Now button you will be directed to the order-pay endpoint checkout page. On this page I want to display a billing details form so that it can be reviewed and edited by customers. I haven't foun...
How do you make sure that on the order-pay endpoint checkout page you can display and change billing details
|php|mysql|wordpress|woocommerce|dokan|
null
I want to store every error message and API endpoint in database so we to keep track of errors and I want to do this globally in the ASP.NET Core Web API project. If any error occurs in an API call, I want the API endpoint, error message, and userLoggedInId. I want to do this dynamically and globally. [database ...
Want to log error message in database in ASP.NET Core Web API
|asp.net-core-webapi|
Because when you use BuiltInTripleCamera as device type, our App will use Ultra Wide Camera as active primary device. But iPhone 12 Pro don't support Macro Photography so this device don't work well. You should set device.videoZoomFactor = device.virtualDeviceSwitchOverVideoZoomFactors.first. To let Wide Angle cam...
I'm currently working on an ASP.NET MVC application and aiming to enhance the user experience by integrating a grammar or spellcheck tool into a textarea. I noticed that Grammarly, as well as QuillBot, doesn't seem to offer a direct API that allows me to send text and receive responses which would represent possible te...
Integrating Grammar/Spellcheck Tool in ASP.NET Application for Textarea
|grammar|spell-checking|uitextchecker|grammarly|
> Regex Match a pattern that only contains one set of numerals, and not more I would start by writing a _grammar_ for the "forgiving parser" you are coding. It is not clear from your examples, for instance, whether `<2112` is acceptable. Must the brackets be paired? Ditto for quotes, etc. Assuming that brackets ...
In my C# / WPF application, I have a `ListView` that I want to use as a `GridView` to display items in a table: <ListView x:Name="Table_ListView" ItemsSource="{Binding Conditions}"/> It is binded to a `ObservableCollection<Condition>`, where `Condition` is defined like this: public class Condition ...
Assume there is an object whose orientation is q_1 now and it's rotating at angular velocity q_r (according to some references I guess the angular velocity is 0.5 * w * q_1). It's expected to change its orientation to q_2 and stop rotating over a time interval dt. How to calculate the angular acceleration?
How to calculate angular acceleration in quaternion form?
|rotation|quaternions|
I'm running a Python Script ("run whether user is logged on or not") on Windows Server 2016 every hour. The Python Script basically just calls an API and exports the results into the JSON file. The problem is, that sometimes JSON file contains weird characters. For example, "7494690" would be displayed as "�Qޘ'". ...
Running Python Script via Task Scheduler returns weird characters in JSON File
|python|windows-server-2016|windows-task-scheduler|
null
I have data with this structure (real data is more complicated): ``` df1 <- read.table(text = "DT odczyt.1 odczyt.2 '2023-08-14 00:00:00' 362 1.5 '2023-08-14 23:00:00' 633 4.3 '2023-08-15 05:00:00' 224 1.6 '2023-08-15 23:00:00' 445 5.6 '2023-08-16 00:00:00' 182 1.5 '2023-08-16 23:00:00' 493 4.3 '2023-08-17 0...
Selection of days in which one hour meets the condition
|r|dplyr|
null
I have a web API solution, .NET core 8, Visual Studio 2022, where in a controller is managed the upload of a file; the code is: ``` [HttpPost(nameof(UploadAsync) + "/{projectId}")] [ProducesResponseType(StatusCodes.Status201Created)] [ProducesResponseType(StatusCodes.Status400BadRequest)] [RequestSizeLimit(5242880...
webAPI File upload does not release memory
|memory|file-upload|asp.net-core-webapi|
> Already value [org.springframework.jdbc.datasource.ConnectionHolder@20f78dcb] for key [HikariDataSource (HikariPool-1)] bound to thread At first, I used a transaction manager that was created for use with the JDBC template. ```java @Bean @Primary public PlatformTransactionManager dbTxManager(...
I want to know what are the collation type is used for viewing emoji or accept in DB what the reason behind it and how its work? >! I need a proper explain about that pls help out of this and moreover what the reason certain collation accept and other why it can't?
is there what are the collation is used for accept emoji in database
|database|collation|adminer|
null
Because when you use BuiltInTripleCamera as device type, our App will use Ultra Wide Camera as active primary device. But iPhone 12 Pro don't support Macro Photography so this device don't work well. You should set device.videoZoomFactor = device.virtualDeviceSwitchOverVideoZoomFactors.first. To let Wide Angle cam...
I encountered an issue while compiling syzkaller ([a customized version of syzkaller](https://github.com/seclab-fudan/SyzDirect/tree/main/source/syzdirect/syzdirect_fuzzer), based on syzkaller commit a371c43c33b6f901421f93b655442363c072d251,Compiling on this commit was successful). When using make fuzzer, I receive...
compile syzkaller fuzzer failed without any error or warning
|go|compilation|fuzzing|
null
Ignite C++ Thin Clients. The class CacheClient does not throw any ignite errors if the connection is lost during any of the get/remove/contains/insert operations. Is there an alternative mechanism to handle the connection lost scenarios? Connection Failover is ok, but if all the cluster connections are lost, ho...
Apache Ignite c++ client 2.16. How to handle the connection lost scenarios in the middle of any cache insert/remove/get operations
|apacheignite|
For the Same wifi connection of computer and mobile. All these answers are right but they did not mention that the IP address must be the wifi IP. if you run the program locally and your wifi is from a **Wi-Fi router** then the IP should be Wi-Fi IP. [Look in image.][1] [1]: https://i.stack.imgur.com/Q1sW8....
Currently i have this code `Private Sub Worksheet_Change(ByVal Target As Range)` `Application.EnableEvents = True ' <-- just for tests` `If Not Intersect(Target, Range("C1")) Is Nothing Then` `Select Case Target.Value` `Case "Expander 1 eff"` `CopyIncreaseRecord` `Case "Exp...
I have used the following code, and everything worked fine for me you can check your code and edit accordingly, I might work for you too. THIS IS MY PROXY SETUP IN THE vite.config.js file import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vitejs.dev/confi...
I am trying to work with .tiff files and I want to ensure that I don't alter the files more than intended, so if I don' make any changes, I expect a 100% identical output with same file-size. To validate that I, initially read and saved a tiff-File to see if there is any unexpected change, and yes, the file-size is ...
Reading and saving untouched .tiff-File with tifffile lib changes file-size and "StripOffsets" and "StripByteCounts" values
|python|arrays|image|computer-vision|tiff|
null
What is the maximum length for `firstname.lastname` combination for login? For example, I am observing that using combination like: **first name** - `firstname` **last name** - `lastname1234` and using `firstname.lastname1234` as user name fails, so I have to truncate it to `firstname.lastname12` so I wonder, what ...
Azure DevOps firstname.lastname login length
|azure-devops|
```java class Test { public static void main(String[] args) { Optional<Y> opY = Optional.of( new Y() ) ; // ERROR Optional<X> opX = (Optional<X>) opY ; } } class X {} class Y extends X {} ``` As in the code above, because `Optional<Y>` is not an `Optional<X>`, there is a...
I use the React framework and react-router-dom 6 for routing. In my application, the base route is /. (login) The user is prompted to log in, and if recognized by the database, they are redirected to /home. On the other hand, if the user is unable to log in, the user remains on /login. I would simply like to protec...
impossible to protect a route with react-router-dom 6
|reactjs|routes|react-router-dom|
It's worth clicking the [learn more][1] link on the `[system.reactive]` tag, we put a fair bit of info there! From the intro there you can see that Rx is not a message queueing technology: > The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences an...
null
i am using sox for creating synth with 100ms, this is my command: ``` /usr/bin/sox -V -r 44100 -n -b 64 -c 1 file.wav synth 0.1 sine 200 vol -2.0dB ``` now when i create 3 sine wave files and i combine all with ``` /usr/bin/sox file1.wav file2.wav file3.wav final.wav ``` then i get gaps between the files....
|react-native|expo|
I wonder what database systems you are used to, if you are worried that rebuilding the primary key index could cause damage. It cannot cause damage. On the other hand, it is only rarely necessary to rebuild an index. Only do that if you know it is necessary &mdash; for example, after checking for bloat with the `pgs...
Launching lib\main.dart on 2201117TI in debug mode... Running Gradle task 'assembleDebug'... ../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.7/lib/models/agora_rtc_event_handlers.dart:189:7: Error: Type 'LocalVideoStreamError' not found. LocalVideoStreamError error)? onLocalVideoStateChanged; ...
I've been delving into Ktor to learn about Websockets, but despite spending numerous hours researching similar questions, I'm still unable to pinpoint the root of my issue. I'm trying to open multiple websocket sessions using Ktor to be able to send and receive messages between the users. However, once I create a webso...
Does method Optional.of do a type conversion?
|java|generics|
I'm trying to create a dot indicator for a carousel slider using the [carousel_slider](https://pub.dev/packages/carousel_slider) package. No idea why it's not rebuilding at all. Simple carousel of images with a dot indicator at the bottom that rebuilds when based on index of image on the carousel. CODE: class...
{"Voters":[{"Id":28128,"DisplayName":"David Grayson"},{"Id":589924,"DisplayName":"ikegami"},{"Id":2756409,"DisplayName":"TylerH"}]}
null
I have an delete option in my project, now i want to create a confirmation modal, but had a problem with button printing. There is an issue, that quantity of this buttons equals of task quantity.[Screenshot of my page](https://i.stack.imgur.com/upta8.png) [Screenshot of my confirmation modal](https://i.stack.imgur.com/...
Is there alternative way to print out buttons without using v-for
|laravel|vue.js|
null
While nested variable expansion is not possible in Bash, in this particular case you could use the following one-liner: ``` echo $(tr '[:lower:'] '[:upper:]' <<<${var//pattern/repl}) ```
My goal is to have a generic way to traverse a `std::tupple`, and the following code tries to show it: #include <iostream> #include <tuple> using namespace std; template <typename t, size_t t_idx, typename t_tuple> concept visit_tuple_element_value = requires(t &&p_t, const t_tuple &p_t...
This question is just so that I may understand the logic of except when one attempts to avoid certain nodes. So a completely useless example follows, but it illustrates my question. Why is it that this code ``` <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"...
Logic of except in XSLT
|xslt-2.0|xslt-3.0|
To prevent this from happening, you can instruct the browser not to cache the login page. This can be achieved by adding response headers. Here is a modified version of your login function to include these headers: ``` from flask import make_response @app.route('/login', methods=['POST', 'GET']) def login(): ...
I need to use uitableview to draw a message list. [![expected list](https://i.stack.imgur.com/2Qszg.png)](https://i.stack.imgur.com/2Qszg.png) In each tableviewcell, I use UIHostingController to load swiftui view. I found that when the page scrolls (and the cell is reused), there will be a werid offset. I used table...
The content of uihostview has a weird offset when it is placed in each uitableviewcell
|ios|uitableview|uikit|uihostingcontroller|
i want to control two drop down lists to tell which macro to be run automatically
|excel|vba|macros|
null
In my angular app there can be 2 type of layout(e.g. List and Detail). I have to get the layoutConfig based on activated route. For this I'm using a route resolver. My plan is ResolveFn will return a signal not an observable. My *LayoutService* has an additional requirement, if its a List, it will get list data from...
I am accessing SQL Server using a Docker container, and have done using this step: 1. `docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Password@123" -e "MSSQL_PID=Express" -p 1433:1433 -v mssqlserver_volume:/var/opt/mssql --name mssql -d mcr.microsoft.com/mssql/server:2019-CU15-ubuntu-20.04` (I use this code in cmd t...
Generic way for traversing a C++ std::tuple
|c++|template-meta-programming|c++-concepts|
I have a list of field name in a database table (my actual list is 15+ in length and can vary) ``` flds = ["foo", "bar", "foobar"] ``` I also have field name in a function that correspond to those values ``` foo = "red" bar = "" foobar = "green" ``` I have code be low that is the same for each variabl...
I don't think that this is possible. After some research online, I ended up at Vlad Mihalcea's article on [emulating JPA auditing using Hibernate generator utility](https://vladmihalcea.com/how-to-emulate-createdby-and-lastmodifiedby-from-spring-data-using-the-generatortype-hibernate-annotation/). It's easy to implemen...
I have a table called `Nodes` consisting of base doc, current doc, and target doc: ``` BaseDocType . BaseDocID DocType . DocID TargetDocType . TargetDocID .. ``` I want to fetch all the related nodes for any specific node. This is what I have so far: ``` WITH CTE1 (ID, BaseDocType, BaseDocID, DocType, Doc...
SQL Server recursive query in a CTE issue
null
When talking of filter length in a gaussian filter, you must explicit "how much" sigma is your filter length. Filter length and sigma are not the same. For instance, you may implement a gaussian filter with a window length of 360 and say that this window length correspond to 6-sigma. This is an approximation to 99.7...
|c++|
The solution atm is to remove package from GitHub profile.
By default, Flutter itself gives some text styling to all elements that you use in UI. You can override them by just adding some more lines in your ThemeData() class in your main.dart. For example: ThemeData( appBarTheme: AppBarTheme( titleTextStyle: TextStyle(fontSize: 20), ), // .... ) Now all texts i...
import Peer from "peerjs"; import { FunctionComponent, ReactNode, createContext, useEffect, useReducer, useState, } from "react"; import { useNavigate } from "react-router-dom"; import socketIO from "socket.io-client"; import { v4 as uuidV4 } from "...