I would like to adapt the example I have found in this page and readapt it to my data in order to get the final topoplot realized with ggplot2 topoplot in ggplot2 – 2D visualisation of e.g. EEG data Unfortunately it seems I having some problem with the interpolation system. Indeed when I try to plot the coordinates, they have spatial distribution very different from what they are supposed to be (my case is on the right and there is a different scale too) This creates a problem to make work the interpolation example posted there. I tried to find some workaround and I used a different system wit
I am trying to collect Google Play reviews on certain apps in English-speaking countries using google-play-scraper. The problem was that when I changed the 'country' parameter, it returned the same result for all countries. from google_play_scraper import reviews, Sort import pandas as pd import time # List of countries to collect reviews from. # Note: Due to Google Play's regional limitations, some countries may not have available review data. countries = ['us', 'gb', 'ca', 'au', 'in', 'sg', 'nz', 'za', 'ie', 'pk'] # TikTok's Google Play package name app_id = 'com.zhiliaoapp.musically' all_re
I am new to Anylogic and I am dealing with a material handling problem. I need an elevator module to transfer materials. It needs to have opening and closing time. And other transporters like forklifts or wheelbarrows are not allowed to be on the elevator. It only transports materials. Since lift module in Anylogic don't have these two features, are there any solutions to build one or any similar open-source models can be recommended? I have tried the lift module in material handling library in Anylogic, but it can't meet my requirements.
As far as I understood from https://klu.ai/glossary/ollama, when we download a model through OLLAMA, Ollama models are stored in the ~/.ollama/models directory. Is there a way to change this default directory, and make OLLAMA read from another directory like ~/projects/foo/modelX/? Or can we make the OLLAMA download the model to this directory in the first place? Thanks!
Body: I'm getting this error while building my React Native project in Android Studio: Execution failed for task ':react-native-screens:configureCMakeDebug[arm64-v8a]'. > [CXX1300] CMake '3.22.1' was not found in SDK, PATH, or by cmake.dir property. I've already installed CMake from SDK Manager but the issue persists. How can I fix this? Installed CMake from SDK Manager (Tools > SDK Manager > SDK Tools > CMake). Ran ./gradlew clean and rebuilt the project. Checked Android Studio settings (File > Settings > Build, Execution, Deployment > CMake) and set the correct CMake path. I expected the bui
In my first case there is a gallery which is declared a flex container. Its width grows as you increase the width of the viewport. <div class="gallery"> <img src="1.jpg"> <img src="2.jpg"> <img src="3.jpg"> <img src="4.jpg"> <img src="5.jpg"> <img src="6.jpg"> <img src="7.jpg"> <img src="8.jpg"> <img src="9.jpg"> </div> CSS for the above html .gallery { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; max-width: 1400px; margin: 0 auto; padding: 20px 10px; } .gallery img { width: 100%; max-width: 350px; height: 300px; object-fit: cove
I have mounted my google drive folder in Ubuntu using gnome-online-accounts, which ends up being mounted like so: /run/user/1000/gvfs/google-drive:host=my_host.com,user=my.username Mounting this in a docker container works fine if I escape it correctly, i.e.: --mount "type=bind,\"source=/run/user/1000/gvfs/google-drive:host=my_host.com,user=my.username/\",target=/data/gdrive" If I try to do the same with docker compose, however, it breaks: # docker-compose.yml services: myservice: build: context: . dockerfile: Dockerfile volumes: - type: bind source: "\"/run/user/1000/gvfs/google-drive:host=my
I'm using the following shortcode to populate all products with sale prices: [products on_sale="true" columns="6" rows="7" title="Check our Products on Sale!"] Is there a way I can use an order or orderby parameter to arrange the products by their brands? By default, they're grouped by product title, but it looks messy.
I am getting a AbortError: signal is aborted without reason. In the past I believe I was able to call abort on the signal even after fetch returned but now I'm getting this error. Maybe it is because I'm calling it twice? Is there a way to prevent this error? I've checked if signal.aborted is true but that would be checking if it was aborted not if the request was completed. Is there a property with the controller or signal that I can use to check if the fetch is done or can I simply catch the error (since it seems like it's more of a warning) and discard it? class MyClass { async send(url) {
After upgrading to 8.2.2, there was an error with MudDialogInstance . Code CS0246 The type or namespace name "MudDialogInstance" could not be found (perhaps the using directive or assembly link is missing). Previously, I used version 7.15.0. Everything worked fine.
I'm building an API that needs to handle different rate limits based on user subscription levels (free, premium, enterprise). I'm using FastAPI with Redis for rate limiting, but struggling with implementing dynamic quotas. Current implementation: from fastapi import FastAPI, Depends, HTTPException import redis from typing import Optional app = FastAPI() redis_client = redis.Redis(host='localhost', port=6379, db=0) async def get_rate_limit(user_id: str) -> int: # Currently hardcoded, need dynamic solution return 100 # requests per hour @app.get("/api/data") async def get_data(user_id: str = Dep
We have been deploying packages to a Dynamics 365 Finance & Operations (F&O) environment using the artifacts generated from our Azure DevOps build pipeline. The deployment process is Download the package from the Azure DevOps build pipeline. Upload the package to the LCS Asset Library. Log into the target F&O environment and manually perform the following actions: Change the status of all batch jobs from Waiting → Withhold (only for jobs run by users who are not admins and jobs created on the current day). Stop all queue scanners in all legal entities. Deploy the package using LCS. After deplo
I’m working on a project that requires fully deterministic outputs across different machines using Ollama. I’ve ensured the following parameters are identical: Model quantization (e.g., llama2:7b-q4_0). Seed and temperature=0. Ollama version (e.g., v0.1.25). However, the hardware/software environments differ in: GPU drivers (e.g., NVIDIA 535 vs. 545). CPU architecture (e.g., Intel x86 vs. AMD). OS (e.g., Windows vs. Linux). Question: Theoretically, should these configurations produce identical outputs, or are there inherent limitations in Ollama (or LLMs generally) that prevent cross-platform
My goal is to be able to serialize alpine variables into JSON and send those JSONs to my backend via htmx. This would be way more convenient then sending disparate form input values and random hx-vals. Essentially I want to use an alpine.js object that I already have and pass it into htmx-vals. This seems like a very easy premise but is proving impossible to me thus far. Right now here's the code that I'm testing: <div id="test_div" x-data="{ testTest: [1,2,3] }"> <button hx-post="/test_handle" hx-ext="json-enc" hx-vals="js:{'data': JSON.stringify(testTest)}"> Submit </button> </div> Obviously
I'm working on a RAG (retrieval-augmented generation) pipeline, where I first preprocess a PDF document and split it into chunks. When running the RAG process, I retrieve the top 5 chunks and generate an answer. To provide context, I want to highlight these 5 chunks in the original PDF document. I'm using the pdf.js library on the frontend, which can technically highlight text, but I'm facing two issues: How do I connect the bounding boxes to the chunks after splitting the PDF? How do I handle situations where bounding boxes overlap across pages? For context, I am using Haystack AI and Python
I am trying to add vertically the lists of a database like DB (see below) contained in a cell. DB={ {[11 12]} {[13 14]} {[15 16]} {[17 18]} {[19 20]}; {[21 22]} {[23 24]} {[25 26]} {[27 28]} {[29 30]}; {[31 32]} {[33 34]} {[35 36]} {[37 38]} {[39 40]}} I would like to get: [33 36] [69 72] [75 78] [81 44] [ 87 90 ] I tried with a for loop (see below), but it takes too much time. sum=[ ] for j=1:5 sumi=0 for i=1:3 sumi=sumi+ c2{i,j}{1} end sum=[sum sumi] end How could I do this with a minimum of for loops or, even better, without any loop?
I am trying to build the Doxygen documentation and publish it to GitHub Pages. Generally, I build the static HTML and CSS files, generate them, and push them with the repository. Then, I use a custom static action to publish the files to GitHub Pages. I want to automate the build and publishing process without needing to push the static web pages along with the code. So, I modified my old GitHub Action script as follows name: build-docs on: push: branches: ["main"] permissions: contents: write pages: write id-token: write jobs: deploy: environment: name: github-pages url: ${{ steps.deployment.
I created a new directory with pyinfra using the relative path new_dir from pyinfra.operations import files, server files.directory("new_dir") Now I would like to get the absolute path of the new directory. I tried result = server.shell("pwd", _chdir="new_dir") print(result.stdout) But that only raises an exception: RuntimeError: Cannot evaluate operation result before execution How can I get the absolute path of the directory pyinfra created for me?
I’ve noticed unexpectedly high costs in our AWS bill, specifically from NAT Gateway data transfer charges. After investigating, it seems the Redis backup Cron Jobs are the primary cause. Here’s the setup: Redis: in a node in private subnet in AZ A. Backup Process: Regular backups to S3. generated by hourly Cron Jobs in the same private subnet in AZ A. Redis architecture Issue: Every time a Redis backup is triggered, the data transfer through the NAT Gateway significantly increases, resulting in high charges. This is especially problematic because our database size is growing, and so are the ba
I run R + Rcpp + RcppParallel from RStudio. I run a parallel loop that works if I do not use a Rcpp::List in the worker, but throws an abort if I use the Rcpp::List in the worker (even in a trivial way). Am I not allowed to use a List in a worker? Minimal example: The R file sourceCpp('minimal_example.cpp') nn = 1e2 ## the following works nicely my_test = list_paral_flawed(nn, 2) ## the following throws a fatal error my_test = list_paral_flawed(nn, 1) The corresponding file minimal_example.cpp (note the minimal change between struct_A1 and struct_A2) // [[Rcpp::depends(RcppArmadillo)]] #includ
I'm trying to upgrade Kafka connectors in MSK Connect (AWS) from 2.7.1 to 3.7.x. Functionally they seem to work fine after the upgrade. But after observing logs in CloudWatch for these connectors I found that workers keep receiving shutdown signal every 6 minutes, as if it's happening on some schedule. This never happened in MSK Connect 2.7.1 and looks concerning. What's more, there are no errors or any obvious indications in logs on why this happens, it just happens for all connectors with predictable intervals. One of these connectors is Debezium source connector for PostgreSQL. This is how
I want to extract text from PDF files particularly only those that are made up of scanned images, I tried to use PDF.js methods with Tesseract.js OCR, but it won't work in web workers, although this is quite expected because document or any DOM elements are not available in web workers. The single most important reason I can't do this on the main thread or in the main script modules, is because of performance, as the browser can freeze or even crash while extracting large PDFs or containing many pages. This is the code I have currently: import * as pdfjsLib from 'pdfjs-dist'; import Tesseract
Following this question, I have a scenario in which I am fetching my agent (product) data from API by the agent slug, where the slug is dynamic. In NextJS 14 app router I am handling this with dynamic routes where the [slug] can be anything even an unlisted agent. When the agent doesn't exist, the API responds with error and the response.ok is false so I reject the promise, then the error message bubbles up in the app router to reach the error.tsx component. I have handled the situation partially by wrapping the fetch in a try/catch block and returning null if there is an error during the fetc
When creating a new React-Typescript project with: npm create vite@latest I get a new project with a lot of boilerplate code, like CSS, components and images that I have to remove in order to start coding. This is getting annoying every time I have to create a project. I explore all the options available in the menu, but I couldn't find any.
While writing a library that will be shared between programs compiled under GCC 14.2.0 for X86 and ARM 6.22 for Cortex-M, I came upon a discrepancy between how the two compilers handle the recursive lambda capture when using the new 'this auto &&' deduced 'this' feature. Here is the code: /* Compiled with --std=c++23 option */ struct Foo { int s = 1 ; void zook (void) { auto f_ok = [ & s = s ] (this auto && f , int x) -> void // ok { if (x < 10) f (x + s) ; } ; auto f_bad = [ & ] (this auto && f , int x) -> void // error: invalid use of non-static data member 'Foo::s' { if (x < 10) f (x + s) ;
I'm trying to extract some data from a pdf table, I used the Tabula.exe app at the beginning and after selecting the wanted area the resulting csv is how I want it. I exported the template and I tried the same thing with Tabula-py using "read_pdf_with_template", but the result gives some NaN values. Sarting PDF: pdf portion Template: template [{"page":3,"extraction_method":"guess","x1":56.99806280517571,"x2":537.6866864624022,"y1":239.22816177368162,"y2":737.7751863098144,"width":480.6886236572265,"height":498.54702453613277}] Tabula GUI result: gui result Python code: df_list = tabula.read_pd
Estou tentando converter um certificado PFX para PEM usando PHP no WampServer com PHP 8.3.14 e OpenSSL 3.4.0. No entanto, estou enfrentando o erro "Falha ao ler o arquivo PFX" ao executar o script abaixo: <?php $pfxFile = 'cert/certificado.pfx'; $pfxPassword = 'sua_senha_aqui'; if (!file_exists($pfxFile)) { echo "Certificado não encontrado! " . $pfxFile; exit; } $pemFile = 'cert/certificado.pem'; if (openssl_pkcs12_read(file_get_contents($pfxFile), $certs, $pfxPassword)) { $cert = $certs['cert']; $privateKey = $certs['pkey']; file_put_contents($pemFile, $cert); echo "Conversão concluída!"; } e
I am new to .NET and I have been receiving this error: "The current .NET MAUI package version '9.0.21' requires the .NET MAUI workload version to be at least '9.0.0'. The current .NET MAUI workload version is '8.0.83'." I tried the things ChatGPT told me, I have also checked the dotnet version and it is "9.0.101". But the issue still persists and the app won't deploy. Here's what I have tried: "1. Update the .NET MAUI Workload Run the following commands in your terminal or Developer Command Prompt for Visual Studio: dotnet workload update Check Your .NET SDK Version Ensure you are using a comp
Error: TypeError: PhpMyAdmin\Export::getFilenameAndMimetype(): Argument #5 ($filenameTemplate) must be of type string, null given, called in C:\xampp\phpMyAdmin\libraries\classes\Controllers\Export\ExportController.php on line 397 Error Occurs When: in 'Export' -> 'Export method:' select 'Quick - display only the minimal options' in 'Export' -> 'Export method:' select 'Custom - display all possible options' with 'data' selected gives error Fixes Tried: changed the 'max_input_vars' in php.ini values to (2000, 10000, 100000) default value was 1000. removed all data in table. tried exporting usin
By default vscode "Dev Containers" extension seems to expose the contents of ~/.ssh/known_hosts and all my ssh keys ssh-add -l (all private keys not added to ssh-agent) of my local machine to the dev container that is being created. This seems to be a feature established sometime in 2019. However there is no trace of documentation how this can be disabled. The GitHub issue referenced above does refer to remote extensions however the remote-ssh isn't installed on my vscode profile. The vscode v1.41 release notes state: Forwarding SSH agent The local SSH agent is now forwarded into the container