All Questions
21,436,507
questions
0
votes
0answers
3 views
Loop in numbers as a whole and string as singular
I have name = "A10"
I want a loop that is
for i in name: print(i)
where the result should be :
A
10
Not
A
1
0
Thanks
0
votes
0answers
5 views
Explain Behavior of HDBSCAN Clustering
I have a dataset of 6 elements. I computed the distance matrix using Gower distance, which resulted in the following matrix:
By just looking at this matrix, I can tell that element #0 is similar to ...
0
votes
0answers
3 views
Download Images Using Selenium in C#
I want to download first 10 images from the given Url stated in the following code of google images.. I have tried soo much ways but can't be able to download images because i got the wrong lengthy ...
0
votes
0answers
4 views
Is LLVM/Clang bootstrapped/compiled by GCC?
There is a term that compiler bootstrapping which fundamentally means compiling a new compiler with old compiled compiler. For example, even GCC is firstly compiling by a little part of GCC and so ...
0
votes
0answers
6 views
Is it possible to make an API call to initialize a Global Store in a React application?
I am trying to make an API call to initialize the store provider in my React application, but I am having some kind of issue as I keep getting a promise instead of the result, even using async/await.
...
0
votes
0answers
3 views
IBM Informix Server - List users with DBSECADM role
After granting user DBSECADM role, there are no results from any of these queries:
SELECT * FROM sysroleauth
SELECT * FROM syssurrogates
SELECT * FROM sysusers
How to get the list of users with ...
0
votes
0answers
3 views
Ion-searchbar replace icon to filter and add click event
I have a ion-searchbar and it is working to filter from a list, now I need to give the option for the user to select the type of search they want to do.
First idea is change the icon from search to ...
0
votes
0answers
4 views
Owl Carousel is not working in my code. What is going wrong?
My owl carousel is not showing up when I try to run it. I linked to the correct stylesheets and to the correct script - but I see nothing.
I tried linking to the stylesheets both locally and directly ...
0
votes
0answers
5 views
MongoDB using Python
Runing mongodb, python, pymongo
I have a database already made, issue I am having, is I would like to upload and receive *.bin files collections.
For the upload, I have tried:
insert_many and ...
0
votes
0answers
5 views
react styles to css conversion
Are there cli packages to convert react style definitions to css? For example, what is the css representation of:
myLabel: {
left: 'calc(-50% + 20px)',
'& *': {
background: 'transparent',
...
0
votes
0answers
3 views
How to get Telescope UUID from Request in Laravel?
we are using Laravel Telescope. I need to get the UUID generated by Telescope Request. Is there anyway that I can get it from Request or other Laravel class?
0
votes
0answers
8 views
How to prevent a component from re-rendering (or atleast keeping state unchanged) when switching pages?
If 2 pages have the same component, e.g. a sidebar, how to prevent it from re-rendering when switching between these 2 pages?
To be more specific, the sidebar is at a certain y position in the scroll ...
0
votes
0answers
7 views
Avoid using of boost optional in case there is no need to copy object
Note: It's actually a continuation of question: G++-11 destruction order changed from G++9
We discovered, that we use UB thing (order of temporary objects constructors) everywhere in code, so we ...
0
votes
0answers
5 views
How do I combine these two datepicker ajax code in the same script?
Here's my datepicker ajax code that's combined. Code#1 highlights the dates retrieved from MySQL database. Code#2 inserts/removes the dates from MySQL table.
Individually they work fine. But if I have ...
0
votes
0answers
4 views
First Tab in TabLayout not updating TypeFace and TextSize
I have a TabLayout with a custom tabView that changes size and type face (from default to bold) when the tab is selected. It works fine for all tabs except the first. The size and typeface remains the ...
0
votes
0answers
6 views
Sum rows and columns in sql query
I have the following Sql Query
SELECT * FROM (
SELECT APLICACION_ID, CASE WHEN ESTADO_CASO ='6' THEN 'Pendiente'
WHEN ESTADO_CASO ='7' THEN 'En_Proceso'
WHEN ESTADO_CASO ='8' THEN 'En_Seguimiento'
...
0
votes
0answers
4 views
Rails, cannot customize input validation error message
I have the following code in the controller and the model. It's for validating whether a model already exists and returning an error message if it does:
Controller
def new
@book = Book.new
end ...
0
votes
0answers
4 views
Elsa-workflows Redirect Http action behavior
What will be the behavior of a workflow after a Http Redirect Activity execution?
In the designer the http redirect activity shows a 'Done' output but when we look at the source code I couldn't ...
0
votes
0answers
8 views
R weird {if-else} behaviour
I have the following if-else block and want to store its result in a variable.
x <- round(runif(100, -50, 50))
maxD <- 30
check1 <- T
y <- {
if(x > 0 && !check1) pmax(pmin(x, ...
-1
votes
0answers
4 views
Incorporating support and resistance levels from Volume Profile Indicator?
I'm looking to test out a strategy where I'll enter at key support level from the Volume Profile Indicator, but since it is more like a drawing tool on trading view, I'm not sure how to get around ...
0
votes
0answers
4 views
GPU doesn't accept VFIO (GPU passthrough)
I'm trying to enable VFIO on my GTX 1060 (and use i5 6600k's iGPU for host). I followed the guide and put "intel_iommu=on vfio-pci.ids=(insert GTX1060's id number)" in the grub file then ...
0
votes
0answers
5 views
Angular - Argument of type 'OperatorFunction<Response, Response>' is not assignable to parameter of type 'OperatorFunction<Object, Response>'
In my Angular-12 application, I have this code in the service:
public getAllCountries(): Observable<any> {
const httpOptions = {
headers: new HttpHeaders({
"Content-Type&...
0
votes
0answers
4 views
404 error in my spring boot controler method
First thanks to help me.
I am stuck in this error when I call my get method I get 404 error. I see all the files and I think all is ok. Can you help me? I share you the structure of my project and ...
0
votes
0answers
4 views
is it possible to have radio button for parent and checkbox button for children in jstree?
for jsTree UI, I want the parent node to be radio button and all its child nodes to be checkbox button, even better if the child nodes can still be toggled on/off while its parent node is off, is it ...
0
votes
0answers
3 views
Intercepting onBackPressed, and subsequently reissung from a Dialog
The scenario I have is exiting from a configuration style fragment via a back button. The object is to detect if any cached data has not been saved, and to force a save or cancel at this point.
I'm ...
0
votes
0answers
14 views
Python nested dictionary over-writes multiple values
I have the following nested dictionary:
table_dict = {
"ints": {
"domain highlights": {
"rows": 3000000,
"nulls": 5
},
&...
0
votes
0answers
2 views
Too Many Redirects Error on Django website hosted through Heroku and a custom domain with Google Domains
I'm working on a personal project and it's the first app that I'm making with a custom domain instead of .herokuapp.com, and so I followed Heroku's guide for Google Domains forwarding. I changed the ...
0
votes
0answers
11 views
Using np.select in DateTime series - Pandas Python
I have a problem using np.select in DateTime series.
Imagine you have a DataFrame: dateframe['id','FLOAT','DATE1','DATE2']
dateframe['DATE1'] = dt.datetime.now()
dateframe['DATE2'] = dt.datetime.now()
...
0
votes
0answers
3 views
Ansible copy files and getting sources and destinations names of file from two lists
i have to copy and rename multiple files
I ve the list of sources files names and destinations files names stored in two lists :
Here the sources_files list :
sources_files:
- /path1/sourceFileOne....
0
votes
0answers
13 views
c++ list not resizing after set difference
Consider the following code:
#include <algorithm>
#include <iostream>
#include <list>
int main() {
std::list<int> v = {1, 3, 4};
std::cout << v.size() << ...
0
votes
0answers
3 views
How can I migrate specific, entire schemas from one Postgres database to another using pgloader?
I want to migrate multiple entire schemas (but not every schema) from Postgres database A to Postgres database B, replacing the existing schemas in B. Is this possible using pgloader, without having ...
0
votes
0answers
7 views
How to set properties in the controller before saving to database
i have a model called Ticket, and want to set the ApplicationUser of the user who creates the new ticket.
This is my controller method:
// POST: Tickets/Create
[HttpPost]
[...
0
votes
0answers
4 views
Rcpp Segmentation Fault in module after updating R version
I am in the process of building an R package using C++ code. I recently updated my macOS to Big Sur (v 11.4) which forced me to update R to a 64-bit version. In particular, I'm using R version 4.1.0 ...
0
votes
0answers
3 views
Relative paths break when clicking through a navigation pane to a subpage
My files are organized in the following manner:
index.html
css(folder)
style.css
pages(folder)
subpage1.html
When I directly open subpage1 the relative paths pointing to the CSS sheet and the ...
0
votes
0answers
3 views
NoAlertPresentException Error when trying to handle popup Selenium Python
I'm attempting to accept a popup on the Facebook website (before being logged in), asking me whether I accept the cookies or not (see image below). However, I keep getting the Exception saying there's ...
0
votes
0answers
3 views
flutter camerapreview rotates 90 degrees in ios landscape mode
I am using flutter's camera plugin version 0.8.1+3.
I have the app locked to portrait mode.
In ios, when I rotate the phone to landscape mode, the CameraPreview widget rotates 90 degrees and the ...
0
votes
0answers
6 views
if emoji isnt a default discord emoji or in server emojis then dont allow
i need something like if emoji not discordemoji:
await ctx.channel.send(f"you can only use default discord emojis")
@client.command()
async def reactrole(ctx, emoji=None, role: discord.Role=...
0
votes
0answers
3 views
bindingResult.hasErrors() always returns false
I have problem with form validation in spring. bindingResult.hasErrors() always return false.Here is method from my Controller:
@RequestMapping(value = "/saveEmployee")
public ...
0
votes
0answers
5 views
How to transition UI elements outside the main fragment area?
I have a shared element transition between two fragments which transition the selected arrow into a big version of that same arrow. I'd like to also remove the filter panel in the top app bar. This ...
0
votes
0answers
4 views
How to display child routes in Angular on their own page for correct breadcrumb nesting
I’m trying to get xng-breadcrumb to work which is based on routes, and it's working fine except I can’t figure out how to define a route for a component that is a child of another page, and not have ...
-1
votes
0answers
7 views
Python Requests form filling
everyone, I'm just checking into the requests library.
Cherome driver with my wishes, I appreciate it, but very slowly.
As an example ; https://help.instagram.com/contact/606967319425038
I want him to ...
0
votes
1answer
4 views
What is ClientVersionNotSupportedError and how to resolve it
This QA is from a Slack conversation: https://uber-cadence.slack.com/archives/CL22WDF70/p1625155376151600
Using local CLI, version 0.18.4; the Cadence server is version 0.16.0. The CLI works for some ...
0
votes
0answers
7 views
Como comparar JTextField com título de ImageIcon de um Random? [closed]
Como consigo comparar o que foi digitado em um campo com um título (nome) de uma ImageIcon que foi randomizada? Tenho um Package de imagens com bandeiras dos países, qual a melhor forma de comparar ...
0
votes
0answers
8 views
Vue Provide/Inject - single object with multiple values vs multiple providers for each value
In Vue's docs about using provide/inject for the composition API (see link), they recommend using a separate provide for passing along a function that can update the original value.
const location = ...
0
votes
1answer
5 views
Google Apps Script: Compare two columns and do something if condition match in a any row of the range
I'm completely new is this thing of scripting/programming, so I'm sorry if I've made something really stupid below
The scenario:
In column "D" I pull stock prices from Google with =...
-1
votes
0answers
7 views
When turning a char with multiple characters into a string with stringstream, spaces dissapear
This is the part of a code code:
time_t now = time(0);
char* date_and_time = ctime(&now);
cout << date_and_time << endl;
string date_and_time_string;
stringstream ...
0
votes
0answers
6 views
Correctly reload partial view in .net core using ajax
The goal here is to have the tasking accordion card be fully reloaded/refreshed after the ajax request for creation goes through so that the next one can be created from anew. I have gotten it "...
0
votes
0answers
4 views
protobuf cmake error: “Error: Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)”
OS: Microsoft Windows 10 Pro
When running
C:\Path\to\protobuf\cmake\build>mkdir release & cd release
C:\Path\to\protobuf\cmake\build\release>cmake -G "NMake Makefiles" ^
...
0
votes
0answers
3 views
Writing comprehensive unit tests in rust
Let's say I have a Rust function named add that adds two numbers. I want to write a comprehensive set of unit tests to ensure it always works.
From what I know, there are two ways you can write the ...
0
votes
1answer
6 views
How do I find the last sent message of specific user discordjs
Im trying to make an bot which automatically sends an embed when a user sends an message, the bot has to delete the old embed.
How would I fetch the last message sent by a specific user?


