All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

Python dont find the module when I use it with sudo

I am using keyboard library that`s need acces to sudo but when I try to run the program with sudo python dont find the others libraries import pyautogui import keyboard if keyboard.is_preseed('w'): .....
0
votes
0answers
3 views

Can someone tell me

I have a database name "fruits" in that I have a table "seasons" in seasons there are 2 columns |--------|----------| |fruit_id|fruit_name| |01 |Apple | |02 |Orange ...
0
votes
0answers
3 views

Technical Interview for placements

Do the coding questions in technical interview which are time bound depend on the coding language we use ? Because I encountered a problem where in the logic of my code was same as the problem setters ...
0
votes
0answers
2 views

Generating conformers of small ligands but preserving correct aromaticity

I'm trying to generate conformers for a number of small-molecule ligands to eventually do docking with. I generated the conformers using RDkit's EmbedMultipleConfs function. However, when subsequently ...
0
votes
0answers
2 views

Check if a key has a value in a multidimensional array with php

I put the result of a SQL request in an array to get something like : Array ( [0] => Array ( [id] => 253 [mother_id] => 329 ) [1] => Array ( [id] => 329 [mother_id] => 210 ) [2] =>...
0
votes
0answers
2 views

How to prove statement is wrong

Trying to prove the following lemma I got stuck. Usully theorems about lists are proven using induction, but I don't know where to move next I am trying to prove a statement is wrong. Therefore trying ...
0
votes
0answers
2 views

OrientDB functioning : WAL and Hazelcast ; First one?

OrientDB : WAL and Hazelcast ; First one ? I have a question about the inner workings of Orientdb. Is the data transmitted to other nodes than plocal before writing the WAL to disk? In other words, ...
0
votes
0answers
2 views

Metasploit module error - exploit/smtp/opensmtpd_mail_from_rce - need to disable autocheck

When trying to exploit metasploitable using the exploit/smtp/opensmtpd_mail_from_rce i am getting the error "Exploit aborted due to a failure: unknown: cannot reliably check the exploitability. ...
0
votes
0answers
2 views

How to read a json file in a dynamic web project/Rest api?

I'm facing a quite stupid problem, i'm trying to make an API using Jersey and Java ee dynamic web application. To connect to a local database i want to use a .json file containing the url, user and ...
0
votes
0answers
7 views

Values are not initializing under try block?

trying to make program rotation of array, it was giving an Exception by user misinput so I use try block but now, under try block it is not initializing values.... Can some one tell the reason or ...
0
votes
0answers
3 views

when i run the emulator show ti\his error

Compiler message: /C:/src/flutter/packages/flutter/lib/src/painting/image_provider.dart:667:7: Error: The getter 'erethrow' isn't defined for the class 'AssetBundleImageProvider'. '...
0
votes
0answers
3 views

Angular 6 - update deep object inside array

i have a config object to send from X component to Y component from the Y component i filter the columns to get only the unique monoselect, then for each column i want to update the options of ...
0
votes
0answers
3 views

what is the best way to design a shift register with stm32

I am using a STM32F031K6, clocked at 40MHz, and I want to design a program which acts as a looping shift register - an external trigger is used to clock it, the values in the shift register left shift ...
0
votes
0answers
8 views

How to show range slider value on html canvas

I'm having a range slider and I would like to show that range slider value on the HTML canvas and the value should always change on the canvas when the range slider value changes. slider.oninput = ...
-1
votes
0answers
6 views

How to solve problem with dynamic memory allocation in C?

This is task; Define a function that accepts two integer parameters. The function returns the pointer to the integer value that it will dynamically allocate. Implement a function to dynamically ...
0
votes
0answers
8 views

I am trying to build a library Managment application using python. I am getting the error mentioned in the error Logs

class Library: lend = {} def __init__(self, name, args): self.name = name self.list = args #self.avail = args self....
0
votes
0answers
3 views

Is it possible to implement a shopping cart using Stripe Connect?

Reading Stripe Connect's docs it doesn't seem like you can do this Stripe supports separate charges and transfers in the following regions: Australia, Europe, Japan, New Zealand, and the U.S. ...
0
votes
0answers
4 views

IntelliJ IDEA not recognizing JavaFX library

I am attempting to create a JavaFX project using IntelliJ IDEA. The instructions for doing so appear here: Create a new JavaFX project. This issue is, I am encountering a popup that does not appear in ...
0
votes
0answers
5 views

react-native-mapbox-gl maps: user position is not accurate

I am using @react-native-mapbox-gl/maps in my android application and I'm displaying maps. Maps work fine in some android models while in others, the user position is way far from where it should be (...
0
votes
0answers
5 views

module 'pandas' has no attribute 'DataFrame' when using alibi package in Python

I'm hoping someone can help me. When I run the following setup I get the error below. It seems like the alibi package is causing it. The other posts related to this problem are either because of case ...
0
votes
0answers
6 views

cant convert saved model to tflite

I amusing tensorflow 2.2 and I am retraining with mobilenets architecture. overall my training is fine but it throws me error when trying to convert model to tensorflow lite enter code here import ...
-1
votes
0answers
8 views

Computing derivative in FFT domain in C

I am trying to compute time derivative of a series in fourier domain... I am using the following logic but I am getting Nans in my output.. Is my logic correct ? int len; float dt; for(int i=0; i<...
0
votes
0answers
3 views

How Would You Profile the Code Generation Done by LLVM?

This question is a bit difficult to find an answer for, as it usually results in an answer about optimizing the binary that LLVM outputs. Not actually optimizing the generation done by LLVM itself. I ...
0
votes
0answers
4 views

Invoke sagemaker endpoint with custom inference script

I've deployed a sagemaker endpoint using the following code: from sagemaker.pytorch import PyTorchModel from sagemaker import get_execution_role, Session sess = Session() role = get_execution_role() ...
0
votes
0answers
7 views

How to programmatically export and import code into Excel worksheet?

We will put 100s of Excel worksheets out in the field this year. The code periodically needs to be updated when bugs are found. For last year's effort, I was able to dynamically have workbooks pull ...
0
votes
0answers
7 views

python sympy How do I simplify an expression where I know that a certain variable is an odd integer

Given, for example, the expression (3*cos(pi*n/2)+2*sin(pi*n/2))/n**2 and the knowledge that n is a positive odd integer (ie 1,3,5,...), the expression could simplify to 2*(-1)**((n-1)/2)/n**2 because ...
0
votes
0answers
4 views

general user shoul get access to the apis without login by providing token (may be single token) laravel passport

I am using laravel passport to authenticate developers who have token to get access to my api's. login is not required may be a single token
0
votes
0answers
4 views

Label puts spaces between buttons tkinter

I am trying to make a calculator in Tkinter and I Finished the buttons, Then tried making a label on top of the buttons but this happened problem's photo as you can see it put spaces between buttons. ...
0
votes
0answers
8 views

Is there a PEP8 Recommendation for when to use fully parenthesized expressions?

I was curious if there was a PEP8 recommendation for when to use fully parenthesized expressions. I'm pretty new to programmer and when I translate over random math concepts I come across in Calculus, ...
0
votes
0answers
3 views

confusion in using select command in postgresql with timestamp column

I have table which has structure like this. CREATE TABLE users ( id serial NOT NULL, created_at timestamp NOT NULL ) I have more than 1000 records in this table. This is my first query. 1 ...
0
votes
0answers
5 views

Remove spaces from Glib::ustring

I have been working on a fuzzy search algorithm and for that I require to remove spaces from my glib::ustring. I tried this: str.erase(remove_if(str.begin(), str.end(), isspace), str.end()); but this ...
0
votes
1answer
17 views

Concatenate is not being used

I have a simple method where the goal is to add "[" and "]" before and after every "." For example: Input: address = "1.1.1.1" Output: "1[.]1[.]1[.]1" ...
-1
votes
1answer
12 views

Hello guys i need to solve this problem about android studio

As you can see here is my problem with android studio i have been looking for solutions 3 days now but i didn't find any so please if anyone have an idea i will really appreciate it thanks a lot ...
0
votes
0answers
4 views

Node: How to paginate a request using https module?

I couldn't figure out how to paginate a request with Node using https module. This is the problem: Given a string substr, I have to retrieve information from a movie database. There are multiple pages ...
0
votes
0answers
3 views

How does windows and linux kernel handle deadlock conditions?

Assume a situation where the Linux kernel runs into a kernel thread deadlock condition, how does it handles it: Will it just stop kill the thread ,if yes, how does the kernel knows that this will not ...
0
votes
0answers
4 views

Cannot send emails using AWS SES and Rails' Action Mailer without IAM Policy settings for all domains

I want to send emails using AWS SES via Action Mailer in Ruby on Rails (v6). AWS provides aws-sdk-rails gem, and it makes to be easy to configure using SES, but I realized that it needs sendable ...
0
votes
0answers
2 views

What to include to perform the same NonSDK interface test as Google Play Console?

I have included the following method in my MainActivity to perform the Non-SDK interface testing. StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); if (Build.VERSION....
0
votes
0answers
20 views

Javascript how to identify a combination of letters and strip a portion of it

Im very new to Regex . Right now im trynig to use regex to prepare my markup string before sending it to the database. Here is an example string: @[admin](user:3) Testing this string @[hellotessginal](...
0
votes
0answers
4 views

Make Vue data globally available and accessible for all components

In have a simple Vue cli app with some pages. In Users.vue I fetch the data from an API with axios: <script> import axios from 'axios' export default { data() { return { users: [] ...
0
votes
0answers
7 views

How to read json from google drive with rest api

I have created some Json file that contains shop's objects and i want to store it on Google drive and read it with Retrofit. Currently, I can't store it in local memory or in-app. Also, there is no ...
0
votes
0answers
5 views

Unable to find method [method] with [0] parameters

I'm trying to call a method in jsf page from a service bean , i pass to it a long number parameter and it's giving me this error .. i'm using hibernate , spring , primefaces . javax.el.ELException:...
0
votes
0answers
5 views

Why is vendor directory empty in PHP/Symfony project running inside Docker container

In my Docker/docker-compose based Symfony project I have the following directory structure: . ├── docker-compose.yml └── server ├── app │   ├── .bash_history │   ├── bin │   ├── ....
0
votes
0answers
22 views

how to pass props to modal on click

I just want to pass props from child to parent by button click but when i pass renderCreateQuizzes(value) it pass props but last modal component empty it again const RenderCreateQuizzes = () => { ...
0
votes
0answers
5 views

How to nulify and a new value to ArrayList from another class?

I want to nulify and set new value to List flowers (remove all elements and add now_flowers) from Working class after alchemyFuel method from Processing class is done. How can I do this? Class Working:...
0
votes
0answers
6 views

Remove space between raw_number and concat

my code: "SET @row_number = 0; SELECT (@row_number:=@row_number + 1) AS Rank , CONCAT('\.'), Name, CONCAT('Ranks:') , Ranks FROM records ORDER BY Ranks DESC LIMIT 3 INTO OUTFILE 'ranks.csv' ...
-1
votes
1answer
19 views

How do I make a function to get all the 'a' tags of a link in javascript

I am currently making a website which requires to grab all the links (or 'a' tags with the href property) of a url. What I'm trying to get are al the links in a given url. A function like this: ...
-1
votes
0answers
5 views

The database script from the site is displayed in the search engines instead of the necessary information

The database script from the site is displayed in the search engines (like Google and etc.) instead of the necessary information. What could be the problem? Unfortunately I cannot provide neither web ...
0
votes
0answers
7 views

Trying to get property 'title' of non-object (View: C:\xampp\htdocs\lsapp\resources\views\posts\show.blade.php)

I am getting above error while requesting to next page but I want posts title is as page title as well @extends('layouts.app') @section('pageTitle', $post->title) @section('content') <a ...
0
votes
0answers
16 views

HTML5 - Send message button not returning my function?

I'm brand new to coding and am following the Udemy Zero to Mastery course. I'm currently having trouble getting my HTML5 to process a function I've made in Python. I want to return my function, ...
0
votes
0answers
7 views

Vocal chat - angular

I’m working with angular for few months and i’m looking for a way to do something. I would like to create a website where users could be put into a vocal chat with another user randomly. Do you have ...

15 30 50 per page
1
2 3 4 5
395683