All Questions
24,196,027
questions
0
votes
0
answers
2
views
Experiencing an error when trying to import from a diffrent directory
i am trying to import a function from another file
a/b/c.py
a/1/2.py
i wanted to import a funciton from c.py in 2.py
sys.path.insert(1, '/path/to/c/py/a/b/c')
from c import function1, function2
i got ...
0
votes
0
answers
2
views
Suspend API not working on 'Created' Task Status in JBPM V6.4
TaskService.suspend(id, user) is used for suspending tasks status by taking the inputs as Task Id and User Id in JBPM V6.4.
But we have some tasks in Created Status which are not being considered by ...
0
votes
0
answers
2
views
response error when working on jupyter notebook for the purpose of extracting data on tweeter
tweets = []
try:
response_json = connect_to_endpoint(search_url, headers, params)
print("Response received successfully.")
except Exception as e:
print(f"An error occurred: {e}")
...
0
votes
0
answers
4
views
How to add dynamic filter to visualization in Superset?
I want to add a filter for visualization that will filter by the last month, taking into account the main filter applied to the entire dashboard.
For example, if there no filter I want see measure for ...
-2
votes
1
answer
10
views
in Python, how to display the mention of a century after Jesus Christ?
I'm looking for how, in Python, to display the mention of a century after Jesus Christ.
For example :
I would display “Ier siècle”
VII would display “VIIe siècle”
200
votes
9
answers
336k
views
Pass a local file in to URL in Java
How do I create a new URL object using a local file, for the purpose of unit tests?
0
votes
0
answers
2
views
Is there a way to create vertical header for table in PrimeReact library?
I want the headers in my table to be displayed vertically along the left side of the table instead of the top.
I’ve looked through the PrimeReact documentation and haven’t found a clear solution for ...
0
votes
0
answers
13
views
undefined reference to `WinMain@16' : Mingw error while compiling
This is the problem code. Please help!!
#include<stdio.h>
int mainn()
{
printf("Hello World");
return 0;
}
Tried fixing from yt videos but they suggest to save the file ...
0
votes
0
answers
5
views
How to include version information in a C++ project?
I wrote a C++ static library, and I want to add version information for it in a designated header. I'm working with C++14.
I'm contemplating on multiple approaches:
Adding it as macros:
#pragma once
...
0
votes
1
answer
38
views
+50
How to provide fresh instance of Mikro ORM entity manager into repositories during testing?
I am trying to test my command handler which has multiple repositories injected into it. When running the test I am getting the following error:
ValidationError: Using global EntityManager instance ...
1
vote
3
answers
2k
views
Explode php array
I have following array result :
Array ( [0] => company_1 [1] => company_10 [2] => company_15 )
I want the result something like this as i can use in the mysql IN query clause:
$result= "1,...
1
vote
0
answers
25
views
Automating password entry for enhanced password protection
I want to enter my password which must not be known (and/or seen) by me.
I have already created a password generator which randomly generates and copies a password into the clipboard without me ...
0
votes
0
answers
5
views
Azure Connection String not readable in Spring Boot application.properties
I have a Java Spring Boot app deployed on Microsoft Azure that is connected to a PostgreSQL database. I want to connect to the database using credentials stored in Azure as Connection strings. The ...
0
votes
0
answers
3
views
Deploying express api from monorepo failing on render
I am trying to deploy my express backend on render as a web service from a mono repo (github link of repo : GitHub - kartik-chausali/code-arena-turbo)
this backend uses different modules which i ...
0
votes
0
answers
14
views
Plotting Indicator Species Analysis over time (indispecies) [closed]
I want to plot the results of an indicator species analysis (package indispecies) based on the time the vegetation plots where sampled to see, if the indicator species change.
How can I get the ...
0
votes
1
answer
7
views
Is it ok to replace image files in the system32 folder with other image files
I want to get custom system icons, to do this i expect you would replace files in the system32 folder. I want to replace the icons on the taskbar with "cooler" ones, so I found them in c:\...
0
votes
0
answers
3
views
npm install failed in expo react native project on MacOs M1
I was trying to install a package in expo React Native project without success. I then tried running npm install and expo upgrade. Unfortunately, npm install failed with following error message:
npm ...
10
votes
4
answers
14k
views
FastAPI: " ImportError: attempted relative import with no known parent package"
I am new to FastAPI and I've been having this problem with importing my other files.
I get the error:
from . import schemas
ImportError: attempted relative import with no known parent package
For ...
1
vote
1
answer
44
views
+50
AttributeError: xlColumnClustered
My Python code to generate charts from pywin32 in Excel is:
def add_chart1(location, sheet, range1, title, left, right, height, width, charttype):
pythoncom.CoInitialize()
xl = win32.gencache....
1
vote
1
answer
9
views
Is There a Way to Expose a Plot Generated Using a Pandas Dataframe as a Jupyter Notebook as an App to the End User?
Current Workflow
Right now, me, as an ML engineer, am using a jupyter notebook to plot some pandas dataframes. Basically, inside the jupyter notebook, I am setting some hard-coded configurations like
...
0
votes
1
answer
13
views
Stop a Program from Running using a Character Without pressing Enter key in Python 3.x
I have tried some solutions that I could get from the other threads here but still no luck. My issue is that the program can recognize the character I've entered but does not execute to stop the ...
0
votes
0
answers
8
views
VPS server %steal reason
We have VPS hosting for our e-commerce website which use hostinger service. The server specification is 32 GB RAM with 8cpu. Now when there is only user coming up in the website also not getting ...
0
votes
0
answers
30
views
Why timeout works differently when executed from terminal vs from a shell script file
I wanted to implement a unit testing shell script file that runs a command, compares the expected and actual output, and also add timeout constraints.
I used actual=$(timeout 2s ./bf --file ./test/inc-...
-1
votes
0
answers
8
views
What traps Awaits a C# programmer learning the Swift Async system? [closed]
Reading about the new version of Swift I see it have Async and Await, a quick read of the Swift documentation makes it sound like the async surport built into C#.
But clealy life is never that easy!
...
0
votes
0
answers
6
views
Not able to activate virtual environment using python 3.12.0 in vs code
I'm working on webapp using python, django and html, css. For that I need to create a virtual environment for that i installed Python 3.12.0 and i run this command "py -m venv myenv" in ...
0
votes
0
answers
6
views
HOW DO I OPTIMALLY READ LATEST DATA FROM DIFFERENT TABLES IN OPENMRS DATABASE
I am trying to uniquely read latest patient data from openmrs database but it takes a lot of time and I want to know if their is a way I can optimize my SQL code to be efficient.
below is the initial ...
3
votes
2
answers
46
views
Python/Regex: Finding a specific pattern to update and then placing it back in the original text
I have a long file containing thousands of lines and a couple of samples are shown below:
\begin{align*}
H_0 \amp : \mu_1 = \mu_2 = \mu_3 = \mu_4 = \mu_5 \\
H_1 \amp : \text{Some text} \\
H_2 \...
0
votes
1
answer
8
views
Trying to create a grouped barchart in R - producing a stacked one instead
I am trying to create a bar chart that has the number of each species grouped into years. I want each year represented on the x axis with the number of each of the 3 species grouped next to one ...
1
vote
1
answer
35
views
Issue with WhatsApp Message Delivery Using WhatsApp Cloud API
We are using the following code to send WhatsApp messages using the WhatsApp Cloud API. The code is as follows:
<?php
$phoneNumberId = 'Phone number ID';
$accessToken = 'Access Token';
// Array ...
0
votes
3
answers
31
views
Slice row out of CSV file...either using python or jsonata
I am using the C2Intel Feeds to find specific observables and when I do, I'd like to extract/slice out the row.
Example:
https://raw.githubusercontent.com/drb-ra/C2IntelFeeds/master/feeds/...
0
votes
0
answers
4
views
Module 'FirebaseRemoteConfigInterop' not found
Firebase SDK Version: Unity 12.1.0
Xcode Version: 15.4
Installation Method: CocoaPods
Firebase Product: Remote Config
Targeted Platform: iOS
Issue:
I got an error: Module 'FirebaseRemoteConfigInterop' ...
83
votes
8
answers
91k
views
How to prevent python requests from percent encoding my URLs?
I'm trying to GET an URL of the following format using requests.get() in python:
http://api.example.com/export/?format=json&key=site:dummy+type:example+group:wheel
#!/usr/local/bin/python
...
210
votes
3
answers
60k
views
Undock Chrome Developer Tools
How do I undock the Chrome Developer Tools in Chrome?
Pressing the left bottom corner just moves it to the right side.
(source: github.io)
0
votes
0
answers
12
views
How can a PDF with text and images be generated
The following snippet generates a pdf with text but the image is distorted like this
Seems the required image should be a .jpg. When I used a .png, not even a distorted image was showing in the pdf.
...
0
votes
0
answers
3
views
Precision and Scale Question in Floating-Point Column
I'm a little confused by the very last example. Here's the excerpt:
When using a floating-point type, you can specify a precision (the total number of allowable digits both to the left and to the ...
0
votes
3
answers
11k
views
ROW_NUMBER and PARTITION BY in Tableau
Can I do the following in Tableau -
ROW_NUMBER() OVER (PARTITION BY A,B ORDER BY C) AS X
Based on the syntax in the Tableau official document I am doing the below but getting an error
{PARTITION [A],...
4
votes
1
answer
9k
views
Trying to get a list from pyodbc.drivers(), but it produces nothing why?
Trying to setup a simple ODBC project. To make sure I name the correct driver in the connection, I wanted to have pyodbc report the current drivers.
Is pyodbc.drivers() supposed to report this ...
0
votes
2
answers
12k
views
Type is missing the following properties from type
I have the following interface in a typescript file.
export interface TempContext {
FriendlyName?: boolean;
hList: SelectFilterListItem[];
}
SelectFilterListItem is an interface in another file
...
2
votes
3
answers
21k
views
MySQL: Cannot start Service, Windows 10
I am aware that this question has been asked many times before, but all solutions I tried out did not work for me.
So, I installed MySQL Workbench and server. I log into Workbench as root. In the ...
0
votes
0
answers
4
views
Playwright: how to interact with Angular Material checkbox
I have an Angular component that contains an Angular Material checkbox:
<mat-checkbox id="my-checkbox">My Checkbox</mat-checkbox>
My goal is to test the containing application, ...
0
votes
0
answers
8
views
I keep getting errors with my machine learning model
It's just a version of a model i made which predicts stocks, when I run it, it works fine, but returns errors with the output, note indentations were messed up but its self explanatory
This is the ...
-1
votes
1
answer
671
views
how cmake Error in compiling for riscv64-unknown-elf-g++
The error looks like the below when I cmake .. from the terminal:
(base) k:~ cd /Users/yuli/Documents/version3/cpp/
(base) k:~ ls
CMakeLists.txt src
riscv-gnu-toolchain test
(base) k:~ mkdir ...
2
votes
1
answer
2k
views
Cannot generate 32 bit configuration for Visual Studio 2019 with host=x86 or -A Win32
I am trying to configure cmake to build for 32bit and 64bit separately...
So far 64bit is easy as I just need to add -A x64
cmake -G "Visual Studio 16 2019" -A x64
But I am not able to set ...
1
vote
1
answer
53
views
AWS Postgres RDS Disk Usage Spikes. Free disk space randomly goes down to 0
AWS Postgres RDS Disk Usage Spikes.
The Free disk space randomly goes down to 0.
We have run out of possible answers for this, initially we thought this was due to MVCC and vacuum, but our table ...
0
votes
0
answers
10
views
Why is binding null
when the button is clicked, it is located on a fragment, and the method from MainActivity is called. after selecting from the dialog box, the method in the fragment is called again. But in this ...
0
votes
2
answers
6k
views
How can I use Install-WindowsFeature with the source parameter
I'm trying to get this to work
Install-WindowsFeature NET-Framework-Core -source \\unc\blah\software\
I'm specifying a path that directly contains dotnetfx35.exe and I've tried specifying the path ...
-1
votes
1
answer
31
views
How to standardize the size of Cytoscape networks for exporting purposes
I am using stringApp on Cytoscape to generate STRING networks of proteins. I have 4 different protein networks that I would like to export out as PDFs, and later combine them together as one figure in ...
0
votes
1
answer
31
views
Limit Text to certain Word
I have made a php script like this
<div>
<div class="container">
<?php $articles = getArticle(3); ?>
<div class="row ...
1
vote
5
answers
100
views
SQL Group By and check if the group contains (edited)
I have houses that can have fixtures 'Sink, 'Faucet' and/or 'Toilet'.
I want find which houses have at least one fixture from the list, but are missing other fixtures and return the missing fixtures.
...
0
votes
0
answers
4
views
Why textMeshPro makes gc when called SetCharArray?
I am new about unity,I found that in the function named SetCharArray, like this:
public void SetCharArray(char[] sourceText, int start, int length)
{
PopulateTextBackingArray(...