Latest Questions

When searching for non-primary key in MySQL using DAO it keeps returning a null object

The first method works but the second method keeps returning a null object. I don't see any difference except that flight_no is the primary key. What went wrong

How do i add a property from one Observable to the second Observable?

I am trying to add an address Observable to a user Observable. export interface Address { country: string; state: string; city: string; street: string; zip

Can not run pyinstaller, as I get enum34 error

I finished a python app, and now I want to packing into an executable, for an end user. I use windows 7 64 bit, and my python version it's Python 3.7.2 I alread

Dynamically change celery beat schedule params

I get schedule values from .env file. And sometimes parameters in .env file change. Is it possible to change schedule values of already running celery beat task

Problem by using for loop when loading data series from .csv file and save them as array matrix for every columns loaded

I want to load a series of data from 6 CSV files and save them per column of the data series. As I call the Column_A, Column_B and new_Column_A, only the last o

jstl variable is not even removed after setting it to null or using the c:remove

im trying to remove a session variable using the c:remove or c:set to ${null} but it did not work. I'm expecting the variable will be removed once I refresh the

Bindy skipping empty csv files

I built a camel route that unmarshals a csv file using camel bindy and writes the contents to a database. This works perfectly apart from when the file is empty

how to make Goroutine not Concurrency if Same Function

Is there any way to make goroutine execute one after another ( one by one) if it was the same function? I didn't mean to use goroutine firstly. However, "os/exe

neither find_all nor find works

I am trying to scrape the name of every favorites on the page of a user of our choice. but with this code I get the error "ResultSet object has no attribute 'fi

sqlplus query + loop on linux

I have pratically 0 experience on unix and few on mysql and I am finding hard where to start to complete this task, I have to write a .sh file to launch once a

State lost value in bootstrap table

I am using custom fields in react bootstrap table. { dataField: "hours", text: "# of Hours", sort: true, footer: "# of Hours", headerStyle: (colum, c

saving s2p format for vector network analyzer vna by jupyter notebook

I connected my laptop to a Vector Network Analyzer (VNA) by a GPIB cable. I identified the instrument to the laptop by the following code in Jupyter Notebook: f

Meshes loaded via Assimp look distorted

So I'm trying to load and render mesh with assimp and DirectX11.(Im loosely following tutorials on youtube) The problem is that it looks weird and distorted. I'

I want to merge similar data I get with foreach

There are product categories that I bought through the API service and these categories come as text. Since the categories are similar, I want to group them and

Library that supports XPath 2.0 in Python

Is it possible to use XPath 2.0 functions like starts-with(), ends-with() and contains() in Python? I was trying to use lxml and defusedxml, but unfortunately t

DynamoDB object persistence with System.TimeSpan throws System.InvalidOperationException

I try to save a class with a TimeSpan property. public class MyItem { public TimeSpan MyTimeSpan {get;set;} = TimeSpan.Zero } when i try to save the object

Next auth getSession with typescript

I am using next-auth getSession in API routes like this const mySession = await getSession({ req }); I am certain that the type of the mySession is this type S

How to mock variables from a groovy file

I have a groovy file created under "vars" in a Jenkins-shared-lib. Few variables are defined inside call(). I want to mock the variables in a groovy test file.

Angular Material Datepicker Selection Strategy - how to get value of selected date range

I'm trying to create a table which will display some info. The columns will be dynamically changing according to the selected date range. I'm using Date range p

Autodesk Forge - How to get all available family in revit file

I am using Autodesk Forge to build a web app, I want to get categories, families, and family types in the original revit project. I have researched but all I ca

implementing dijkstra's algorithm using a priority queue

So I'm trying to implement Dijkstra's algorithm. I understand Dijkstra's works, but I struggle to turn the concept into code. I have what I thought would be the

Conditional KinesisStreamSpecification in CloudFormation script

I am new to CloudFoundation scripts and trying to set the conditional attribute for AWS DDB table using the yaml files. Tried with below but getting error durin

DevEcoStudio: No SDK file downloaded on installing DevEcoStudio

I have an issue in downloading SDK file in version 3.0.0.800. After I installed DevEcoStudio I realized that SDK file did not get installed with it. So when I g

Return sub list of elements based on matching sub strings from another list

I want to filter a list of string based on another list of sub strings. main_list=['London','England','Japan','China','Netherland'] sub_list=['don','land'] I w

can't import torchtext.legacy.data

as i know, from torchtext 0.9.0, torchtext.data and torchtext.dataset are moved to torchtext.legacy but my 0.12.0 torchtext can't import torchtext.legacy while

Pandas store a json into a pandas column

I have a pandas dataframe like this data = {"Name": ["Tom", "nick", "kish", "jack"], "Age": [20, 21, 19, 18]}

The error of several nn.GRU layers in Pytorch model

Recently, I made a GRU model with Pytorch. When the model has one nn.GRU layer, it runs well. But when there are more than one GRU layer, the model would report

When I run the program, I don't get any errors, but after I have already set the value of the variables, I get this error

When I run the program, I don't get any errors: #include <iostream> #include <string.h> using namespace std; int main() { string s1, s2, s3;

Remove zeros from Dataframe of lists

I have such a DataFrame: index B 0 [0,1,2,0,4] 1 [1,0,2,0,0,1,7] I want to count the non zero values of each list for each row. Result: index B 0 3 1 4

get returned data to display inside of vue model

I have a simple set of data that will come in from my method. I need the data to display inside of my vue model thats all which is inside an object or array. Ho