All Questions
151
questions with bounties
1
vote
2
answers
131
views
+50
Keyboard creates different iOS devices
Having an issue with inconsistency with multiple iOS devices. The same code creates gaps when I click the TextInput iPhone SE (2nd Gen), IPad Pro (10.5-inch), but it doesn't create the same gap with ...
2
votes
1
answer
107
views
+100
React Native print
I would like to print text with my printer but I got the error: ERROR [TypeError: Cannot read property 'print' of null]
However I correctly install the packages with `npm i react-native-print
I'm ...
2
votes
0
answers
77
views
+50
How to sort SDDL DACL aces in canonical order?
Based on this I use library https://github.com/Tirasa/ADSDDL for manipulating SDDL
implementation("net.tirasa:adsddl:1.9")
To enable flag user cannot change password I use following code ...
6
votes
2
answers
2k
views
+100
Jacoco aggregate report is generating Exec file instead of XML
We have a multi-module maven project. We are using java8.
-Parent
-- Child 1
-- Child 2
-- Coverage-Report
All projects have unit test cases, those all are working good and have more than 85% of ...
1
vote
1
answer
170
views
+500
Is it possible to extend Angular standalone component with another standalone component?
I was trying to create an inheritance tree of standalone components but I was bogged down with issues like JIT compilation and waiting for resolveComponentResources(). I don't wait to enable JIT or ...
1
vote
1
answer
120
views
+50
How to use PublisherServiceAsyncClient
I am trying to use AsyncPublisherClient from pubsublite
pip install google-cloud-pubsublite==1.8.3
from google.cloud import pubsublite_v1
pubsub = pubsublite_v1.AsyncPublisherClient()
error: Module ...
2
votes
0
answers
145
views
+50
Passing row-level security parameters to stored procedures in direct query datasets
I would like to use row-level security parameters (user, role) as parameters in a SQL Server stored procedure (or table functions with parameters), and visualize the data returned by the stored ...
0
votes
1
answer
90
views
+50
How do I overwrite a BigQuery table (data and schema) from PySpark?
I am trying to write a PySpark DataFrame to a BigQuery table. The schema for this table may change between job executions (columns may be added or omitted). So, I would like to overwrite this table ...
2
votes
1
answer
112
views
+50
Nuxt : n2 is not a function
I'm using Nuxt 3 and I have an TypeError like this :
Uncaught TypeError: n2 is not a function
I have a button calling my function toggleSelectRow with a @click.prevent
And here is the function :
...
9
votes
2
answers
2k
views
+500
Webpack - Determine why a file is included
I have a webpack config with some loaders and plugins. These loaders have some include/test/exclude rules.
However, a set of files keep being included in the webpack build. They're not imported ...
-1
votes
0
answers
60
views
+100
Can't debug rust in VSCode due-to @rpath/libc++.1.dylib
When trying to debug rust in VSCode, there is an error:
dyld[24992]: Library not loaded: @rpath/libc++.1.dylib
Referenced from: <E5F2890B-A104-3EA1-BD19-3C85826B6D5A> <long_path>/target/...
-1
votes
0
answers
93
views
+50
Python code packet window is shown as full by Wireshark
I have a python code with such a structure:
server_info = (server_address, listen_port)
socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket.setsockopt(socket.SOL_SOCKET, socket....
0
votes
1
answer
8k
views
+100
Android app build error: D8: XXXXXXX is defined multiple times when switching branches
We are facing a peculiar issue while building our Android app. Everything compiles successfully when we develop on one branch. However, as soon as we switch to another branch (any branch other than ...
10
votes
5
answers
7k
views
+500
Wrapper for arbitrary function in Go
Is it possible to create a wrapper for arbitrary function in Go that would take the same arguments and return the same value?
I'm not talking about the wrapper that would look exactly the same, it ...
0
votes
1
answer
64
views
+100
Deno types show type /*unresolved*/ any
Deno types show /*unresolved*/ any – I get no type information
Example
import Stripe from 'stripe';
const stripe = Stripe(stripeApiKey);
const paymentIntent: Stripe.PaymentIntent =
await ...
1
vote
1
answer
150
views
+500
Slow Disk Write Speed - Windows Server 2022 Standard
I have an M5.XLarge server running in AWS that I recently upgraded from Server 2012 R2 to Server 2022 Standard. It has a GP2 1200, IOPS, Unencrypted, 400 GB drive attached to it. When I try to ...
0
votes
0
answers
13
views
+50
View not receiving ACTION_DRAG_ENTERED when DragShadow enters View - Drag And Drop
I am implementing Drag and Drop feature in my app. I have an object A and an object B. I have registered OnDragListener on the object A and the object B will be dragged and dropped in the object B. I ...
0
votes
2
answers
101
views
+50
How can I change the color/style of ToolBarItem's when the toolbar changes from translucent to opaque in SwiftUI?
Basically, I need a way to detect when the toolbar has gone from being transparent to opaque. At that point, I would like to remove the grey background from all of the items in the toolbar and change ...
2
votes
1
answer
130
views
+50
Xamarin.Forms ListView not displaying items even when setting IsVisible to true
Description:
I'm working on a Xamarin.Forms application, and I'm currently facing an issue with my ListView not displaying items even after setting IsVisible to true. I've followed the Xamarin ...
1
vote
0
answers
46
views
+50
How can I use XFilterEvent?
I have seen many examples with the same way of creating IC and using XFilterEvent function:
XSetLocaleModifiers("@im=none")
im = XOpenIM(dpy, 0, NULL, NULL);
if(im)
{
ic = XCreateIC(im,...
0
votes
3
answers
112
views
+50
Wrong redirect after success login
I have an application that has been working for several years. Login worked as it should, i.e. after redirection to Google login, access granted. The user was redirected to the address provided via ...
0
votes
0
answers
71
views
+150
How to automate post on linkedin using nextjs and linkedin API
I am trying to automate posts to my linkedin page using nextjs. I have a web application built using next js. When I make a new post on my web application then it should automatically be posted to my ...
0
votes
1
answer
109
views
+50
Flutter - Android Studio - Why is "Flutter attach" and "Hot reload" buttons greyed out on Android Studio?
I have an existing native Android app to which I am adding a Flutter module (as new screens of the app will be written in Flutter).
This is my project structure:
native_project
app
...
0
votes
1
answer
98
views
+50
Hover on headlessui Menu element to open instead of click
I am trying to create a Navbar using headlessui’s Menu component. Since hovering is not supported by the component itself, I went through the GitHub issue thread and tried some solutions there. Yet, ...
0
votes
1
answer
54
views
+50
How can I set global / environment variables to my own npm package / node module from a project?
I have made my own npm package for react. We will call it @group/package
In that package, I made exportable hooks.
As an example, I made a hook that we will call useFetchWithRefreshToken.
In that ...
3
votes
2
answers
110
views
+100
How to decode PKCS#7/ASN.1 using Javascript?
Recently I started to work on Apple app store receipt validation and due to the deprecation of the legacy /verifyReceipt endpoint, I decided to go for on-device validation. The guideline described ...
2
votes
1
answer
1k
views
+100
How to detect if AirPlay is active before playing a video with AVPlayer?
I was using the following code to detect whether or not AirPlay is the current selected route:
let airPlayActive = AVAudioSession
.sharedInstance()
.currentRoute
.outputs
.first?
.portType =...
7
votes
2
answers
1k
views
+250
Chrome iPad has wrong viewport height
I have a strange behavior on Chrome browser (v 95.0.4638.50) on iPad (iPadOS 15.0).
I have a first website (let's call it "A") and a second website (called "B"). A has a link to B ...
2
votes
0
answers
118
views
+50
What is "too large" for a SkSL shader, and how can I use larger shaders?
I can get Compose to render a fragment shader:
fun main() = singleWindowApplication(title = "Shaaaderrrs") {
val runtimeEffect = remember {
RuntimeEffect.makeForShader(
...
0
votes
0
answers
127
views
+50
Reverse error in Django Admin when using class-based views
What's the proper way in Django Admin to display a model (Appointment) with a foreign key to another model (Customer) which may have too many entries (1000+) to display in a dropdown?
Autocomplete is ...
0
votes
0
answers
22
views
+100
Building ML Model in AWS Sagemaker autopilot with Time Series feature
I am building a classification model in AWS Sagemaker using Autopilot. I have imported a dataset which has a time series feature. This features includes a list of values in each cell. The data set is ...
1
vote
0
answers
89
views
+100
"protocol version mismatch -- is your shell clean?" when using docker with ray
I am getting the following error when using docker with ray:
Digest: sha256:2c0f86c6209e02d1f9e3d0a611ac04d73c3ed132b8b9319a28e2069f1503fb53
Status: Downloaded newer image for us-west1-docker.pkg.dev/...
-2
votes
0
answers
142
views
+50
Any scalable way to read types from CLI args?
use ark_ff::PrimeField;
use clap::{Parser, arg, command};
mod printers;
mod dummy_circuit;
mod circuit_traits;
use printers::*;
use ark_relations::r1cs::{ConstraintSystem, ConstraintSynthesizer};
...
23
votes
9
answers
18k
views
+150
FFMPEG amix filter volume issue with inputs of different duration
I noticed that ffmpeg amix filter doesn't output good result in specific situation. It works fine if input files have equal duration. In that case volume is dropped in constant value and could be ...
0
votes
0
answers
49
views
+50
Android YouTube player button to change video
Context
I'm building my first android app and one view in the app is supposed to be a YouTube Player at the top with a list of videos (that come from an API end point that I don't have control over). ...
2
votes
0
answers
166
views
+50
Google Groups for Business is not Delivering Msgs from Some Users to Group Members
This is a non-trivial problem. I've spent nearly 3 hours in chat with Google Support. This escalated to 2nd level and then internal support.
I am not actually expecting a resolution from this message. ...
2
votes
0
answers
52
views
+100
How correctly format the dataset to train a llama2 alpaca fine tuned model?
I would like to fine tunning a llama2-alpaca model called bode.
I have a web-scrapped dataset of questions and answers and I would like to use it on SFTTrainer to fine tunning that model to this ...
2
votes
2
answers
88
views
+100
CodeIgniter 3 - flashdata() always returns null after a page reload
Migrating from CodeIgniter2 to CI3. PHP 8.2
I've confirmed that there are not multiple requests, by looking at network traffic. There are only 4 other files loaded from the same server, and those are ...
3
votes
2
answers
948
views
+50
Xamarin Android App crashes when attempting to debug on a physical device
I am attempting to debug an android app created using Xamarin Forms in Visual Studio 2022. However, the app crashes on launch and no output is shown. When running the app normally, there are no ...
89
votes
9
answers
153k
views
+100
How to block users from closing a window in Javascript?
Is it possible to block users from closing the window using the exit button [X]? I am actually providing a close button in the page for the users to close the window.Basically what I'm trying to do is ...
0
votes
0
answers
47
views
+50
Visual Studio Test Adapter for Catch2: unit tests for C++ code on remote linux
I want to use the Catch2 for unit testing in VS solution, containing projects written in C++ for Linux.
Unfortunately, I can't make it working.
The Visual Studio is running on MS Windows.
The problem: ...
4
votes
4
answers
235
views
+150
How to Overlay a Scrollable Sliver on a SliverAppBar in Flutter?
I have a CustomScrollView with a SliverAppBar and some slivers. I want to overlay some graphics on the SliverAppBar and have them scroll with the rest of the list.
Here's the code I've been working ...
1
vote
0
answers
30
views
+100
Why are my exported Core Animation layers blurry on iOS (only in a 16:9 aspect ratio) and on Mac Catalyst (any aspect ratio)?
Seeing this with watermark image and text layers that each back a UIView
// Create the video layer.
let videolayer = CALayer()
videolayer.shouldRasterize = true
...
2
votes
1
answer
121
views
+50
How to have a widget-like entry in the Shortcuts app for my App Intents in iOS?
I refer to having the App Intents looking like these widgets inside the Shortcuts app. Is that possible or only reserved for Apple apps?
I thought it would be enough adding a shortTitle and ...
0
votes
0
answers
38
views
+50
telethon and opentele conflict
I'm calling this in main.py:
from opentele.td import TDesktop
from opentele.tl import TelegramClient
from opentele.api import API, UseCurrentSession
async def save(name, path):
client = ...
-1
votes
0
answers
41
views
+200
Python IntelliJ style 'search everywhere' algorithm
I have a list of file names in python like this:
HelloWorld.csv
hello_windsor.pdf
some_file_i_need.jpg
san_fransisco.png
Another.file.txt
A file name.rar
I am looking for an IntelliJ style search ...
0
votes
1
answer
134
views
+100
Memory not released in Azure DataBricks
In Azure DataBricks (12.2 LTS (includes Apache Spark 3.3.2, Scala 2.12) I am running the following code in the Notebook on compute Standard_DS5_v2:
df_spark = spark.sql(my_qyery_to_delta_table)
...
2
votes
1
answer
115
views
+50
Issues accessing DynamoDB Pagination Token in AWS SDK for .NET's AsyncSearch class
I'm currently diving into the DynamoDB AWS SDK for .NET, particularly tinkering with the AsyncSearch<T> class to perform table queries. The goal is to incorporate pagination into my application, ...
2
votes
1
answer
726
views
+500
Can obfuscated code for Flutter package or Flutter plugin
this doc shows how to obfuscate the flutter app. But in my case, I write a flutter package, and I don't want to provider its source code while other flutter app using this package, just like an ...
2
votes
1
answer
1k
views
+100
How to communicate to a device via TCP/IP in Python?
I have an Agilent (Keysight) E4980A LCR meter. If I install the Keysight IO Libraries suite I can connect to the device. This means, at least I have the right LAN (cross-over!) cable.
If I send the ...