All Questions

0
votes
2answers
22 views

Plotly: is there a way to save the data of a clicked point in a list?

I have a 2D plotly graph with a hover feature. When you hover over each point, the label (e.g. 'image 2, cluster 1') associated with that point appears. I'd like for label to be appended onto an ...
0
votes
0answers
4 views

Python using dict.fromkey() to initialize dictionary of lists results in strange .append() behavior

I am trying to initialize a Python dictionary of 12 keys, all set to empty lists to later populate with different values. Here is a simplified example of the issue The naive solution returns the ...
0
votes
0answers
36 views

Fortran 77 compilation for IRI 2016 model

I've been trying to compile the IRI model lately, somewhat unsuccessfully. I've downloaded the IRI 2016 + common files + indices files, and using the test file to, well, test. I'm using gfortran (...
0
votes
0answers
8 views

How do you store data in a SQL database where a user can change the columns that are being collected

I'm trying to figure out how to store configurable a log in a database. The main issue is that the user would like to be able to update what data is being captured. Here's an example for what I'm ...
0
votes
2answers
6 views

Seleneium now has a line through my code on a different PC

Okay, so I am working on my laptop rn and I copy and pasted my code from my PC and suddenly it's not working. I have installed the same Selenium but now it is acting up, I am receiving ...
0
votes
1answer
34 views

Multithread foreach slows down main thread

I have a 2D array data structure, and perform work on slices of the data. There will only ever be around 1000 threads required to work on all the data simultaneously. Basically there are around 1000 &...
-1
votes
0answers
2 views

I am having this problem, I try to run node compile.js on my mac terminal and this error pops out

Error: ENOENT: no such file or directory, open '/Users/Simple/VScodeProjects/VScode/inbox/contracts/contracts/Inbox' at Object.openSync (node:fs:585:3) at Object.readFileSync (node:fs:453:35) at ...
1
vote
1answer
898 views

SQL UPDATE statement combining multiple rows into one column

I'm working with airline data, so I have a query like this SELECT Invoices.PNR, Segments.Depart, Segments.Arrival, Segments.DepartDateTime FROM Invoices AS i INNER JOIN Segments AS s ON i.Invoice_ID =...
0
votes
1answer
14 views

Trouble running this piece of python code

I'm just trying this normal piece of code with f-strings but here in this particular line mentioned below, I couldn't determine ,what's the problem. I had already checked the syntax ,everything seems ...
1
vote
1answer
28 views

Python Selenium Click On Hover Button

I am trying to click a button to initiate a file download. The button has hover-over functionality from what I have seen. I have tried clicking via all find_element_by paths. HTML chunk of the page, &...
0
votes
1answer
10 views

Summarize multiple survey questions responses in a single table with percentages

I am a pandas novice working with survey data and would like to summarize % of positive responses to multiple questions in a single table. I have looked at groupby and pivot but still stuck. Answers ...
0
votes
0answers
14 views

ctime() doesn't work in visual studio 2022

I'm writing a c++ program to give me the current time. and I use visual studio 2022. but the problem is localtime() and asctime() do not work in visual studio 2022. could anyone help me? Thanks #...
260
votes
5answers
88k views

E731 do not assign a lambda expression, use a def

I get this pep8 warning whenever I use lambda expressions. Are lambda expressions not recommended? If not why?
0
votes
0answers
10 views

In laravel, How to change the language of site per user's location automatically

I'm going to implement the multi-language feature in my Laravel website. php artisan --version Laravel Framework 7.30.6 I've realized that the best library is the Torann / laravel-geoip by torann. ...
0
votes
0answers
4 views

Ionic Project, Error: inject() must be called from an injection context

I encounter issue with my Ionic Angular & Firebase project, with the code bellow : Error: inject() must be called from an injection context at injectInjectorOnly (core.js:934:1) at Module.ɵɵinject ...

15 30 50 per page
1
2 3 4 5
1476917