instruction
stringlengths
0
30k
Child component not re-rendering after parent component gets updated
|reactjs|
|python|nicegui|
I am coding app in expo using sqlite databse. On ios everthing is OK, but on android its not working. LOG Error [Error: Error code : no such table: cars] import React, { useEffect } from 'react'; import { NavigationContainer } from '@react-navigation/native'; import { createNativeStackNavigator...
Expo - Android sqlite no such table
|android|sqlite|expo|
null
This is the pubspec.yaml. I defined the fonts that I am going to use and I copied the font file to fonts directory of my android project. ``` name: your_flutter_app description: A new Flutter project environment: sdk: ">=2.12.0 <3.0.0" dependencies: flutter: sdk: flutter math_expressions: ^2.0.0 #...
There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
|ios|react-native|expo|eas|
For anyone coming from SwiftUI, adding an empty image name to `Info.plist` should work as well. <key>UILaunchScreen</key> <dict> <key>UIImageName</key> <string></string> </dict> [![Info.plist configuration][1]][1] [1]: https://i.stack.imgur.com/cCSGx.png
I would like to know how to add a soft constraint in the scenario below: There a group with total 4 people and they are allowed to conduct 1 / 2 tasks, and the preference is 4 people in one task —> evenly split 2 teams (2 people per team) for 2 tasks —> 3 people for 1 task and the rest 1 for another task How can ...
Google or-tools soft constraint issue
|python|optimization|or-tools|
|mysql|inno-setup|
`psycopg2.errors.UndefinedObject: operator class "gin_trgm_ops" does not exist for access method "gin"` Hello everybody, this is the whole message when I try to run pytest on my project which is written in Python/Django + db is postgresql and all sitting inside docker. I build a project on docker with django-cook...
# Current Problem I am trying to productionize a Python application. This is not easy because Python does not support a way of creating a single compiled binary from the source code. Furthermore Python does not support a natural way of creating shared libraries. I will explain this in further detail in the following...
Your problem is that you echo out the `$data` variable in PHP, so it's rendered initially. Instead, you can fetch it from the `$wire` object. ``` @script <script> $wire.on('dataUpdated', () => { var rawData = $wire.data; console.log(rawData); console.log('updated'); ...
A windowed function is processed at the same time as SELECT. More specifically, this is the order of operations: - FROM and JOINS - WHERE - GROUP BY - HAVING - ORDER BY - SELECT Notice how SELECT is processed last. Therefore your queries are not the same. Your first query is filtering before the wind...
Here is the scenario / task: The user is browsing online and as soon as he/she runs into a website that uses CDN (for example CloudFlare or any other reverse proxy) the browser the user is using has to do the following: Either 1. Warn the user that the site is on CDN / reverse proxy. or 2. Block the site by sayi...
CDN Detector Extension / Script
|proxy|reverse-proxy|cdn|
I'm a basic developer working on a pet project and getting myself in knots on the best approach for displaying this in a React Native app via Flatlist. First off, this is the format of the JSON file. There are approx 7,000 of these records in the file. ``` name: "Meeting 1" timezone: "America/Los_Angeles" day...
I only wanted to hide the right sidebar, so after I dragged all icons to the left sidebar, the right sidebar automatically disappeared. You could also right click on each icon and click "Hide" or "Move to" a different sidebar.
Your code has circular dependencies: `game` imports `encounter` and `encounter` imports `game`. You also have a lot of logic in the module scope in `game`; module level logic is evaluated the first time a module is imported -- however, a module isn't finished importing until all its code is evaluated, so if you end up ...
null
Your code has circular dependencies: `game` imports `encounter` and `encounter` imports `game`. You also have a lot of logic in the module scope in `game`; module level logic is evaluated the first time a module is imported -- however, a module isn't finished importing until all its code is evaluated, so if you end up ...
I had the same problem it was because of my web server configuration according to the doc: https://router.vuejs.org/guide/essentials/history-mode.html You should have this for Apache ``` <IfModule mod_negotiation.c> Options -MultiViews </IfModule> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase ...
Include `<fenv.h>` and use: ```c int r = fesetenv(FE_DFL_DISABLE_DENORMS_ENV); // check r == 0 ``` From `man fegetenv`: ```none The fesetenv() function attempts to establish the floating-point environment represented by the object pointed to by envp. This object shall have been set by a call to fegetenv...
I had a wrong connection manager in the Data Source pane. The Development PBI server could not reach the production connection that was chosen by mistake. That is why the Windows authentification failed. It worked once I changed the connection order to the dev server database.
# Definition of STDIN, STDOUT, and STDERR <br> The OS' kernel of all operating systems use these 3 main **I/O (Input/Output)** streams, and these are **STDIN**, **STDOUT**, and **STDERR**. **STDIN** is the **I/O** stream that is processing information related to input, **STDOUT** is the **I/O** stream that is pro...
I am fairly new to Java, currently learning about lambda expressions. so I wanted to use generic with the Consumer function to make it accept any type of parameter passed to it and just print it out The consumer accepts the first generic as the type that must be passed to it as the first param I specified it to be...
Using java super and exends with lambda expressions
|java|super|extends|
null
I want to make my code read a sheet of IDs and when someone enters the wrong ID the code removes the unmatched response from the google response sheet. Ok the code reads a sheet of ID numbers in the frirst column and then when someone fills out the google form the first question is ID Number. When they fill out the for...
i have made a web based project on school managment system in laravel . Now i want to add API in it.what changes or addtion do i need to make in application for example in the routes or controller. i have'nt tried anything . just want to add the functionality of API.
API addition to web based application (Laravel)
|php|api|laravel-10|
null
Azure Scale Sets and Parallel Jobs
I am writing code for _Roman Numeral Converter_ in the browser, currently learning Javascript. The problem is right on checking return statements in `console.log` I am getting the right answers, but somehow all tests are failing. CODE: ``` let resstr = ""; let resarr = []; function convertToRoman(num) { let...
I have 2 SQL queries. Query #1: SELECT SUM(PrincipalBalance) FROM (SELECT lt.AccountId, SUM(CASE WHEN TransactionTypeId IN (1) THEN PrincipalPortionAmount ELSE 0 END) - SUM(CASE WHEN Transac...
I want to change the return type of memoizer to `Future<List<MyModel>>` However, I can't seem to find a way to change it. It always return as `Future<dynamic>` Here's my code: final AsyncMemoizer _memoizer = AsyncMemoizer(); Future<List<MyModel>> getSometing() async { return this._me...
How to change the return type of memoizer?
|flutter|dart|
I would like to ask everyone, I have downloaded the SIDD Benchmark Noisy data set, and then used my denoising model to remove the noise. How do I check the PSNR and SSIM results of my denoising? Where can I find SIDD Benchmark GT? Let me calculate, or get the score through other methods? Thank you. I don't know how to...
How to calculate PSNR and SSIM of SIDD Benchmark,
|python|
null
Playwright provides the option to use line numbers as well as the filename for debugging purpose via the command line. As per documentation the below format needs to be used for debugging using line numbers **npx playwright test example.spec.ts:10 --debug** Note: I've tried the same but got an error.(Using a .js f...
In my Flutter Project, I want to customize the font of a text, but it doesn't work
|android|flutter|fonts|
null
Transforming the text in the URL, rather than just substituting it, can be achieved using the `RewriteMap` directive. The Apache httpd user guide has [a page detailing how to use RewriteMap](https://httpd.apache.org/docs/2.4/rewrite/rewritemap.html), which includes this example: > Redirect a URI to an all-lowercase ...
{"Voters":[{"Id":1145388,"DisplayName":"Stephen Ostermiller"}]}
I am using reactive_forms for handling user input in my flutter project. Once double click ReactiveTextField copy/paste functionalities don't work only on iOS (working on android). What is the problem? Here is my code: ``` Widget _buildTextField() { return Padding( padding: const EdgeInsets.symmetric(...
copy/paste functionalities don’t work only on iOS
|ios|flutter|dart|flutter-reactive-forms|
I'm making a macro like this: ```swift @attached(peer, names: arbitrary) public macro Lazify(name: String, lock: Protectable) = #externalMacro(module: "MacroModule", type: "LazifyMacro") ``` It should be used to attach to a function declaration, to generate some other variables. But I got the error `Circula...
I am encountering an issue while attempting to print a Jasper report within a Docker container using an Alpine-based OpenJDK image. The application runs smoothly when using a non-Alpine base image, but encounters problems when using Alpine-based images. I am using `JasperFillManager.fillReport(String sourceFileName,...
I have interfaces **Angular Typescript Class** interface A_DTO { type: string, commonProperty: string, uniquePropertyA: string, etc.. } interface B_DTO { type: string, commonProperty: string, uniquePropertyB: string, etc... } ...
I have a TCP server written in C++ and a React.js application on the client side. All you need to know is that the send() method in \<winsock.h\> sends an empty string to the client instead of data as a string. Сlass method that defines the logic for sending data to the client: ``` void TcpServer::sendDat...
Error after command biogeme = biogeme.BIOGEME (database, logprob)
|jupyter-notebook|anaconda|
null
I have developed an Android application that includes a background service (MainService) designed to run automatically after the device restarts. To achieve this functionality, I have implemented a BootReceiver class and added it to the AndroidManifest.xml file to handle the ACTION_BOOT_COMPLETED intent. However, despi...
I'm trying to run a local Postgres database with the PostGIS extension, and then populate the database with a shapefile, without having to load the data in manually. I have a ```docker-compose.yml``` where I'm first using the postgis docker image and using port 5432. I've already tested this when the container is ru...
I am practicing on C programming language. I had Win 10 systems and I was practicing on it and I always get addresses which are multiples of 2. Know, I am practicing on Macbook Pro M3 and I get 9 digit addresses. Also, here is the code and result: ``` #include <stdio.h> int main(void) { int m = 10, n, o, *...
9 Digit Addresses in Hexadecimal System in MacOS
|c|macos|memory|memory-address|digits|
null
I've really been struggling with one of my FlatLists. Sometimes (seemingly at random) my FlatList will only show the first 10 items and will not display more items when I scroll to the bottom. I have no idea what is triggering this, it just happens sometimes when using my app. I am aware that the default number of i...
Playwright JS: Getting an error when debugging using line numbers
|javascript|debugging|command-line|playwright|
null
I watched [this video](https://www.youtube.com/watch?v=VLk45JBe8L8) and everything works in dev and local, but I deployed the proyect in vercel and everytime I want to submit the form I get the 405 method not allowed. There are no logs about the error. ```js const ref = useRef<HTMLFormElement>(null) ... ... <for...
405 Method not allowed RHF + Server Actions in Next.js and deploying it in Vercel
|reactjs|next.js|vercel|react-hook-form|server-action|
null
{"Voters":[{"Id":16217248,"DisplayName":"CPlus"},{"Id":18157,"DisplayName":"Jim Garrison"},{"Id":5468463,"DisplayName":"Vega"}]}
I have set up a Kubernetes cluster with a single master node and three worker nodes running in VMs. Within this cluster, I deployed an nginx pod and created a LoadBalancer service using MetalLB to allocate an external IP address. The LoadBalancer service is exposing port 80, and when I SSH into the VM hosting the Kuber...
I had RNDocument Picker, the below worked for me: Remove the package to start with: npm remove react-native-document-picker Install version 8.0.0 ```$ npm install react-native-document-picker@8.0.0``` You can also try: `$ npx react-native-asset react-native-document-picker` If you get an error saying rea...
1. Return a pointer to the `Node` of interest instead of updating the out parameter `head_dest`. The stack will implicitly hold `cur_list_dest`. 1. The original implementation changes the original list. To create a new list you need to return a pointer to *copy* of the smallest node or NULL. To emphasize that I m...
null
Dear team facing attached error while launching emulator on VM. I Have attached error screenshot and System specification. [Error Msg](https://i.stack.imgur.com/IMvnq.png) [System specification](https://i.stack.imgur.com/AQ5rV.jpg) I tried to launch emulator on on VM DESKTO OS 11 we created on Nutanix AHV. Facing e...
Android studio emulator launch on VM
|android-emulator|
null
THIS IS MY TRUFFLE-CONFIG.JS <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> require("babel-register"); const HDWalletProvider = require("truffle-hdwallet-provider"); require("dotenv").config(); module.exports = { networks: { ...
Sepolia test network ID
|javascript|testing|blockchain|
Currently, I'm trying to get down basics of jetpack compose, and I'd like to ask you about the view model. Let's say we have an app which will make a few different api calls. As far as I know, beofre jetpack compose, we could have a few fragments for each api call (because they will serve completely different data). So...
Jetpack compose ViewModels - should I have one ViewModel for different api calls?
|android|kotlin|mvvm|android-jetpack-compose|retrofit2|
Your algorithm essentially performs a bread-first search, where you extend all partial matches you found in a previous iteration by one character and keep those that still match. So for a worst case scenario we would want to have as many partial matches as possible for as many iterations as possible. One such worst ...
Sending data from C++ server to React.js client
|c++|reactjs|server|backend|winsock|
null
I cannot execute a procedure stored on mssql server from django. Here is the configuration for the db. DATABASES = { 'default': { 'ENGINE': 'mssql', 'NAME': os.environ.get('DB_NAME'), 'USER': os.environ.get('DB_USER'), 'PASSWORD': os.environ.get('DB...