Quantcast
Browsing all 14069 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Shift in 2Dimage when converting from lidar point cloud to 2d Image

I am mapping a lidar point cloud to 2d image. I have successfully mapped the point cloud to 2d image but there is a shift of 0.5 meter to 1meter in the 2d image from the lidar point cloud when...

View Article


Nanobind: How to use class from another module inside module?

I currently have several NB_MODULEs, and those have some nb:classes which are identical. I'm looking to move those to a common place so that each NB_MODULE can use them from the same location,...

View Article


Google OR Tools - applying constraints with arrays

I want to apply the following constraint to a MILP:L_i - X_ij @ L_j <= 0Where X_ij is a matrix of binary variables, Li is a length of bars and Lj is represents a vector of the lengths of...

View Article

ModuleNotFoundError: No module named 'aiogram'

I work in VS Code and I was asked to change the telegram bot script from python-telegram-bot library to aiogram. I've installed that via 'pip install aiogram' and still getting errors like...

View Article

How can I add bar (columns) charts that has a trend line above. Currently I...

I tried to have stacked bars (columns) charts with a trend line above.Right now with below codes I was able to have a line chartsHow may I change it to have line charts? (Sorry for some Japanese...

View Article


How to solve a "matplotlib.backend_pdf" error?

I found this example code for creating pdf with python, but I got a error, show as follow. So I´ll like some help with this. I did a little research and try upgrade the matplotlib but the error keeps...

View Article

How to Subset Climate Data Based on Lat Long in Python?

Okay so this may sound too noobish but I am working on the Hunga Tonga Volcano and trying to subset different meterological datasets based on specific lat long values to create a reference climatology...

View Article

Task. PROGRESSION the task must be solved in python [closed]

the task must be solved in pythonInput file name: standard inputOutput file name: stdoutTime limit: 0.5 secondsMemory limit: 256 megabytesGiven six natural numbers A1, B1, A2, B2, A3, B3, denoting...

View Article


An error occurred (NoSuchKey) when calling the ListObjectsV2 operation: None...

I try to use list_object_v2 to list files in bucket on digitalocean but it's not working. The Upload and Delete file function is working normally with the endpoint, access key, and bucket. The problem...

View Article


Image may be NSFW.
Clik here to view.

How to redirect sys.stdout to two or more separate widgets?

class EmitStr(QObject): update_info_signal = pyqtSignal(str) def write(self, text): self.update_info_signal.emit(str(text)) QApplication.processEvents()sys.stdout =...

View Article

Airflow tasks overlapping

I only want one DAG to be able to run before the next one is triggered. I often have multiple overlapping dag runs. How can I achieve this?

View Article

Launching the custom profile in Chrome for testing version

I am trying to run the following code, but I encounter a Driver's SessionNotCreatedException error.Could you please have any ideaas how to specify a ChromeProfile when using Chrome For Testing?Error...

View Article

python imageio mp4 video from a set of png images

How do I make an mp4 video from a set of png images with the module imageio? I've tried this:import imageioimport globwriter = imageio.get_writer('test.mp4', fps=20)for png_path in glob.glob('*.png'):...

View Article


Harmonic filter using numpy - smooth edges

I am trying to write an harmonic filter.Here is the code (python):from scipy.io import wavfileimport numpy as npwave_file_path = 'in.wav'num_harmonics = 10base_frequency = 50sample_rate, data =...

View Article

How to shorten Google cloud storage URL or can we use a custom domain?

I utilize Google Cloud Storage to host my images and PDFs. However, the challenge arises due to the lengthy URLs generated by Google Storage, making it impractical to share through text messages. Is...

View Article


Image may be NSFW.
Clik here to view.

OpenCV captcha solving [closed]

I am trying to find the best way to find the start and end point which would solve the captcha when it appears. Any advice would be much appreciated.

View Article

Image may be NSFW.
Clik here to view.

Module 'tensorflow' has no attribute '__version__'. Tensorflow v 2.11.0. Why?

print(tf.__version__) doesn't work. Same thing with print(tf.version), print(tf.version.VERSION), print(tf.VERSION)I am using Windows 10 x64. Python v 3.10.7.I don't want to reinstall to the old...

View Article


OSError: SavedModel file does not exist while using it in a python script...

I use the model from this keras example https://keras.io/examples/timeseries/timeseries_traffic_forecasting/ in order to make traffic forecasting, based on graph neural network and LSTM.My environment...

View Article

Find two rectangles with maximum sum

emphasized textIt is possible to find a rectangle in a large n by n matrix of integers that has the maximum sum reasonably quickly. There is an O(n^3) time algorithm as described here and here for...

View Article

Micrsoft Graph API To-Do Lists

I am trying to get a list of all my taska in the Microsoft to-do app over the Microsoft graph API v1.0 using python.I was able to establish a connection to the graph API and query some user data,...

View Article
Browsing all 14069 articles
Browse latest View live