instruction stringlengths 0 30k ⌀ |
|---|
You're going to have to debug against **release mode** on your physical device.
That or, you can run **logcat** on terminal, while your app is running (on release mode), and see what errors come up. You should see the exceptions, and stack trace.
Please post them on your question, so the community can help. Thank... |
{"Voters":[{"Id":206404,"DisplayName":"Stephen Newell"},{"Id":23528,"DisplayName":"Daniel A. White"},{"Id":62576,"DisplayName":"Ken White"}],"SiteSpecificCloseReasonIds":[16]} |
See example. Recursive assembling expression formula from expression_tree table.
```
with -- recursive -- for PostgreSql
triple as(
select expression_id,oid
,concat(
case when lv in('*','+','-','/') then concat('{',lid,'}')
else cast(lv as varchar) end
,ov
,case when rv in('*',... |
|google-cloud-platform|google-cloud-storage|gcloud|google-cloud-iam| |
null |
null |
I try to debug after successfully complied dll to use ini Godot engine .
I configured my launch.vs.json
{
"version": "0.2.1",
"defaults": {},
"configurations": [
{
"type": "default",
"project": "C:\\dev\\my\\godot\\Godot_v4.2.1-stable_win64.exe",
"name": "Godot ... |
Visual studio c++ Access to path is denied |
|visual-c++|godot4|visual-c++-2022| |
Can somebody guide me on how to host angular 17 SSR, in IIS? I followed the following link however getting "This site can’t be reached" error"
https://www.thecodehubs.com/how-to-deploy-ssr-angular-universal-to-iis/
IIS is setup as follows
- Www root
-ngssrdemo
- borwser
- server
- main.j... |
How to deploy angular 17 SSR into IIS |
|iis|deployment|angular-ssr| |
I deployed mysql via docker compose and it's available at 0.0.0.0 and at 127.0.0.1 via commands `mysql --host=127.0.0.1 --user=root --password=team6 --port=53366` and `mysql --host=0.0.0.0 --user=root --password=team6 --port=53366` but `mysql --host=localhost --user=root --password=team6 --port=53366` fails due to "ERR... |
How to run Parallel tests by groups using Maven and TestNG? |
|maven|testng|appium|parallel-testing| |
null |
**Option 1**:
Use [`allMatch(Predicate)`](https://www.javadoc.io/static/org.assertj/assertj-core/3.25.3/org/assertj/core/api/AbstractIterableAssert.html#allMatch(java.util.function.Predicate)):
```java
assertThat(asList(0, 1, 2, 3))
.allMatch(i -> i > 0);
```
```lang-none
java.lang.AssertionError:
Ex... |
I got this working using the following code
bundling_options = {
"command": [
"/bin/sh",
"-c",
" dotnet tool install -g Amazon.Lambda.Tools"+
" && dotnet build" +
" && dotnet lambda package --project-locatio... |
I'm using tensorflow `2.16.1` on Ubuntu 22.04, tensorrt `10.0.0b6`, but when I import tensorflow I get the warning:
```sh
W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
```
I already exported the path to my path inside bashrc, and sourced it, as follows:
```sh
## C... |
I am creating a recipe which reads the jenkinsfile and update the content back the jenkinsfile I created a java class which extends Recipe and overrided the getVistor method from Recipe and tried to implement the logic inside the visitor method but even before reaching inside the visitor i am receiving below error
... |
I am trying to add a referral system to my existing Laravel v9 application(event and ticking)
I got the package and tutorial on Github repository here https://github.com/jijunair/laravel-referral
I followed all the instructions but get errors all the time.
NB: I am new with Laravel
this code is supposed to di... |
I am having troubles displaying referral link in my customer dashboard, using Laravel |
|php|laravel|referrals|reward-system| |
null |
I am trying to increase stack size, but keep getting this error after running
```
EDITBIN /STACK:2097152 w3wp.exe
```
'*fatal error LNK1342: failed to save a backup copy of the binary file to be edited*'
I am not able to find anything about correcting this online.
I am using vs dev tools 2022, windows ser... |
I'm trying to encrypt a ZIP file using AES-256 GCM in C and decrypting it in Python. Here is the C code I'm using:
```c
NTSTATUS generateRandomBytes(BYTE *buffer, ULONG length)
{
BCRYPT_ALG_HANDLE hProvider;
NTSTATUS status = BCryptOpenAlgorithmProvider(&hProvider, BCRYPT_RNG_ALGORITHM, NULL, 0);
if (... |
Turns out my guesses were not too bad.
These lines were contained in /etc/screenrc (commented out there).
`# following termcapinfo line(s) which tells screen to use the normal screen buffer
#termcapinfo xterm* ti@:te@`
So I created this ~/.screenrc
which did it:
`
termcapinfo xterm* ti@:te@
` |
MSAccess: How to automatically create a new parent form record when when data is first entered into a child form |
|sql|vba|parent-child| |
|python|physics|symbolic-math|sage| |
I am using SSD mobilenet pre-trained data and I want to add a class for it. I want it to detect QR codes since they were not part of the pre-trained data.
I also want to lessen the model's classes and limit the objects it can detect at a time
I have already my labeled images in .xml
Really need help, Thanks!
... |
As mentioned in my previous answer change it to
Before:
(change)="onProductChange($event,i);
After:
(optionSelected)="onProductChange($event,i); |
A similar approach to EdChum's, except a better function than `rank()` would be `cumcount()` for multiple reasons:
1. You don't have to pull out the grouping column.
2. You don't have to specify additional parameters.
3. `cumcount()` returns integers rather than floats, which is probably what you want for an id... |
I have run into a wall trying to use `subprocess.run()`.
In windows, outside Visual Sudio, I open a command window and get:
```none
c:\users>
```
Then I change directory
```none
c:\users>cd c:\xfoil
```
Then I run the xfoil program
```shell
c:\xfoil.exe < input_file.txt
```
xfoil runs and gen... |
I hope this solution will help someone, I had issue that I have no control over the server to run the redis server as a service and I have to run it manually each time.
the solution is :
class AppServiceProvider extends ServiceProvider
{
public function boot()
{
try {
... |
I have a data frame - each individual has multiple visits. I want to filter out patients who had disease 2 after disease 1. Sometimes a patient can have disease 3 between 1 and 2, and they should be included too. In this case, I would pick out ID 2 & 4 & 6.
ID <- c(1,1,2,2,2,3,3,3,4,4,4,5,5,6,6,6)
Visit <... |
It is worth looking in *[Rock Solid addEvent()][1]*.
Here is the code in case the site goes down
function addEvent(obj, type, fn) {
if (obj.addEventListener) {
obj.addEventListener(type, fn, false);
EventCache.add(obj, type, fn);
}
else if (obj.attachEvent)... |
Need help in Converting Python script (Uses Yolo's pose estimation) to an android app |
|python|android|opencv|yolov8|pose-estimation| |
null |
The `WindowGenerator` class is a red herring. The model compilation and training is done in `compile_and_fit()`, to which the model and window is passed. Once the model is trained in this function, it can then be used to make predictions using the `model.predict()` function. |
I am trying to build a GNOME extension for my personal use on my Ubuntu system. The purpose of this extension is to switch between LAMP versions.
[![enter image description here][1]][1]
================================================================================ Code ====================
[![enter image d... |
I am trying to build a GNOME extension for my personal use on my Ubuntu system |
|gnome-shell-extensions| |
It would also be helpful to include some comments in code to explain what each section does. <br>
From what I see working through the code, you are first adding the Headers from your original Sheet 'Session-2024' to a new Workbook Sheet `sheet_dcfc1` with name 'Sheet' (then reading back / printing these headers). <b... |
RadzenTemplateForm keydown event not working in Chrome and Edge |
|keydown|preventdefault|radzen| |
null |
This sounds like your laptops btrfs filesystem is having issues - as in it's fragmented. Try looking into tuning btrfs. I would also look into [this section of the docker documentation related to docker and btrfs][1] - specifically the section on performance which points to fragmentation.
[1]: https://docs.docke... |
This is specifically for React-Natice. if you run into Adroidx issues when trying to run the android app in vscode, open the android folder of the reactive-native app in android studio, let it do it magic and you just need to resolve any issues android studio highlights, once that is done close android studio and try r... |
I am trying to write the following code: Write a program that accepts a number, n, where -6<n<2. The program will print
out the numbers n to n+41 as 6 rows of 7 numbers. The first row will contain the values n to n+6, the
second, the values n+7 to n+7+6, and so on.
However, when it comes to a single digit on the f... |
Trying to print a set of numbers that are right justified without using format |
|python|format| |
Try it, maybe this is what you wanted? Saves the selected ranges into two separate PDF files, maybe I misunderstood you. Part of the code was found on this forum and adapted to your needs.
**The user chooses the range himself:**
Option Explicit
Sub Export_v1()
Dim shArr As Variant
... |
mySQL through docker compose not available at localhost |
|javascript|mysql|docker|docker-compose| |
In your PHP script what is happening:
1. You writing string using echo where is your first js script
2. Then you are evaluating **if (window.scrollY >= scrollLimit)** on server side and it`s true, so you writing another string with your secong js script
3. Somewhere in your other scripts you are sending response,... |
I have been studying about the useEffect hook in reactjs. and i studied the we can not pass parameters to useEffect function, this is understandable. but tried to search for the reason the why is it not allowed to pass parameters in useEffect function.
```
useEffect((parameter)=> {
console.log(parameter)
... |
null |
On Windows 11, a fresh install (no Putty or anything, just the built-in OpenSSH server that is in the Optional Features of Windows). First add your keys:
```
ssh-add c:\work\gitlabKey c:\work\githubKey
ssh-add -l #this will verify the keys were added
```
If you get an error that the agent isn't running, it's... |
webpack recompile but nothing changed |
|webpack|html-webpack-plugin| |
null |
I have a H2 database (version **2.2.220**) with data in a `JSON` column; I need to migrate the column via a SQL script so that the data is in a conventional relational database structure. The main stumbling block is that on extraction of a JSONValue string value (surrounded by double quotes in JSON format), I am strugg... |
I also suggest you read through the official document https://redux.js.org/tutorials/essentials/part-1-overview-concepts and https://redux-toolkit.js.org/rtk-query/usage/migrating-to-rtk-query
after that, you will know everything(why and what's the best practice of RTK)
what I learnt:
- RTK cAT(create asynx thun... |
I have been facing a problem for several days, I have not found a solution on the various forums and in the documentation that I have read
I need to create a SQL query that allows me to retrieve data from an Excel file. This file has a first column that I always have to retrieve, and 38 others columns which correspo... |
I have the following component which renders a list of properties, with each one clickable to an individual slug page with more details about the chosen property:
app > for-sale > page.jsx
```javascript
'use client'
import { ArticleCardFooter } from "@/components/ArticleCardFooter";
import { Container, Grid } ... |
null |
I can't override the show(_:sender:) of UIViewController or else my app freezes when the method is called (Xcode 15.3 simulator, iOS 17.4, macOS Sonoma 14.3.1, MacBook Air M1 8GB).
Is there any workaround?
Here is a table view that helps illustrate the UI freeze when you tap on the right bar button item:
```
... |
`getReferralLink` did not exist because you are missing `use Referrable` in the customer model. Once you added it, you've got past this problem and stumbled into the next one, which complained of
> Undefined variable $referralLink
This happened either because `getReferralLink` returned `null` for the customer, or... |
I am new in Mapbox programming and I used Mapbox Studio to create my first style.
I would like to configure a polygon that inside the polygon, the map is in color, with all the detail that you can expect of a map, and outside the polygon, the map is BLACK (no street, no building...)
How can i do it with mapbox st... |
How to display just a area of the map in color in Mapbox Studio and the rest in black? |
|styles|mapbox-studio| |
null |
You don't check anything after first while loop, in fact you could just skip it and get the same result, it is doing absolutely nothing that the next while isn't doing anyway. The second while loop leads to discarding all values not in a 5s range, so it is impossible to check the 30s condition.
Fixed code (also usin... |
total commander adds a note to a file using tcimg and the parameters don't work correctly:
comns=%L||[input=BOX50]||exect=$var_aa=_ArrayCreate(4)||$var_aa[1]='Program'||$var_aa[2]='Text'||$var_aa[3]='Conference'||$var_aa[4]=1000||_ ArrayDisplay($var_aa)||exect=_ViewValues(ClipGet())||cliptext
Parameters cannot be... |
total commander adds a note to a file using tcimg and the parameters don't work correctly? |
|tags|file-manager|total-commander| |
For anyone looking for a quick starter project and avoid this kinda of troubles, I have made some Angular / NestJS boilerplate project fully dockerized and ready to deploy to production server.
I am sharing there: https://github.com/godardth/typescript-fullstack-boilerplate
Hope that helps :) |
Please only use Android Studio for Android development. It's Google recommended. You're actually making it harder on yourself, by "Reeinventing the wheel".
Just learn how the IDE works (Android studio). Take it step by step. It takes time to learn new things. Be patient |
I am trying to render cards based on some condition using switch case, but the components to which I am not subscribed to using the store variable from redux-toolkit is also getting rendered and this switch is causing to unmount and mount the component, whereas when I use jsx instead of switch it's not getting mounted ... |
The components are getting unmounted and mounted again if we use switch case, Why? |
|reactjs|redux|redux-toolkit| |
You need to send the message to the `HWND` that `CreateWindow()` creates. You can get that from the return value of `CreateWindow()`, or from `GetDlgItem()` after `CreateWindow()` is finished.
The `LPARAM` needs to be a pointer to the 1st character of a null-terminated C-style string.
```
char myline[size];
//f... |
1. How did I fine the problem?
the Fragment's `onDestroy()` was triggered multiple times, accumulated and caused crash.
[onDestroy() triggered multiple times](https://i.stack.imgur.com/ZVp6M.jpg)
2. What is the function
ViewPager + Fragment
3. More detail
a) It shows there has 2 usage but I just refer... |
In case anyone has the same problem. I used the wrong `am.getAuthToken()` method overload. I called the one that takes `Activity` as an argument. [This is the method I was supposed to use.][1]
Also note that, `onActivityResult()` is deprecated.
[1]: https://developer.android.com/reference/android/accounts/Ac... |
|excel|vba|excel-tables|listobject| |
So I have a scientific data Excel file validation form in django that works well. It works iteratively. Users can upload files as they accumulate new data that they add to their study. The `DataValidationView` inspects the files each time and presents the user with an error report that lists issues in their data tha... |
According to the table of where intrinsic functions are supported, you cannot use them in a Choice, but can be used on Pass Parameters. Using your intrinsic function on Parameters via `Transform input with Parameters` will work.
[![Where intrinsic functions are supported][1]][1]
[1]: https://i.stack.imgur.co... |
You should read the contents of the input file first, then should use subprocess.run() to execute XFOIL by providing the input content directly, like below:
import subprocess
with open(r'input_file.txt', 'rb') as f:
input_content = f.read()
xfoil_process = subprocess.run(['c:\\xfoi... |
|excel|vba|windows|excel-tables|listobject| |
Remy Lebeau said the answer in a comment:
> Then the screensaver is likely not implemented correctly, as all screensavers are expected to handle the `/p` parameter for displaying a preview in the OS's own configuration screen. The only other things I can suggest is 1) try using `'/p:<hwnd>'` instead of `'/p <hwnd>'`... |
This is based on @christian-rondeau's awesome answer, which is the core of this solution, but that didn't account for the api changes to `IConfigurationBuilder` made as part of `net6.0` ([see this blog for more info](https://andrewlock.net/exploring-dotnet-6-part-1-looking-inside-configurationmanager-in-dotnet-6/)) and... |
You can actually publish Fault messages. Try something like this:
await harness.Bus.Publish<Fault<CreateAgreementMessage>>(new
{
Message = new { CorrelationId = createdAgreementMessage.RequestCorrelationId }
});
If you want to verify that the state moved to your expected state you can a... |
How to add a class to an existing model, reduce the images or classes and limit the objects it can detect at a time |
|tensorflow|object-detection|tensorflow-lite|tflite| |
null |
I have a batch file that I run in the File Explorer address line that moves files from a specific directory into the current File Explorer directory.
```shell
move C:\Specific folder\*.* .
```
I run it by clicking the blank space at the end of the address which causes the pieces of the name of the folder to com... |
Basically when you make an API call , there will be a response. From the network tab, you can see that a response was being sent back to you.
Ultimately in react or basically javascript you should use something like a
const response = await fetch('https://cricova.lol/transaction/callback)
const data = a... |
i have build my ios app using xcode 14 and ios 16.0.1, but some users report that app crashed on iphone 15 pro max, i assumed that it a version mismatch, i installed the last update available in app store for xcode, which is xcode 15, i installed ios 17, but when i try to build my app using iphone 15 i always got modul... |