jump to:allmastodonblueskylemmylobstersdevstackwikirsshn
wwebbit
view: | | |

Knowledge / Stack Overflow · hot matching “r”

30 shown · updated 47s ago · read only
  1. "Type of predictors in new data do not match that of the training data." within terra::predict (stackoverflow.com)stack

    30 points by Léa C in stackoverflow.com · 3m ago · stack

    I am facing an issue similar to the one raised here r random forest error - type of predictors in new data do not match but cannot apply the suggested solution to my problem, as my test data is a raster stack. I am trying to run the line: mean_rast <- terra::predict(s, model, na…
  2. How to achieve adc sample for 1 shunt resistor foc (stackoverflow.com)stack

    29 points by mxmxlwlw in stackoverflow.com · 6m ago · stack

    I need to achieve foc algorithm using 1 shunt resistor. So I need to sample adc twice during one pwm period. How to achieve that? I'm using stm32.
    filed under stm32
  3. Populating a react-select select with option groups (stackoverflow.com)stack

    28 points by Chris Morris in stackoverflow.com · 9m ago · stack

    Using react-select and trying to populate it with grouped options as per code block 1 below:- ExhibitionOption is defined in code block 2:- Where I have the console.logs, these are being output as I would expect them to be:- The issue is that where I am calling this in the Selec…
    filed under reactjstypescript
  4. How to optimize nested conditional logic for dynamic tax calculations in Vanilla JavaScript? (stackoverflow.com)stack

    27 points by Waqas Solangi in stackoverflow.com · 11m ago · stack

    I am working on a dynamic financial utility using JavaScript. The goal is to process asset values, deduct current liabilities, and calculate liability amounts based on standard dynamic thresholds. While building this logic, I noticed that applying sequential boundaries (such as…
    filed under javascript
  5. Python subclass dircmp (stackoverflow.com)stack

    25 points by Damien in stackoverflow.com · 37m ago · stack

    I'm having trouble subclassing the dircmp class from the filecmp module of Python. Here is my code: import filecmp class dircmp(filecmp.dircmp): def __init__(self, a, b, ignore = None, hide = None): super().__init__(a, b, ignore, hide) print("subclass init method") def phase3(se…
    filed under pythonsubclass
  6. matplotlib savefig silently exits with code 1 after plt.plot() succeeds — no exception, no output (stackoverflow.com)stack

    24 points by Nikos in stackoverflow.com · 45m ago · stack

    I am running Python 3.13.14 on Windows 11, using VS Code 1.100.3 with the ms-python extension, inside a conda environment managed by Miniforge3. matplotlib version is 3.11.1, PyQt5 (pyqt 5.15.11) is installed. I am running scripts from the PowerShell terminal, not from a Jupyter…
    filed under pythonmatplotlib
  7. Is there a kill switch alternative for a homemade VPN? [closed] (stackoverflow.com)stack

    23 points by Cyber Tempo in stackoverflow.com · 1h ago · stack

    I am trying to build a server and wanna make it as secure as possible without much of a hassle. I came to know that implementing a kill switch into the system opens up a new level of security, but its way too complex to actually setup. The main problem is that kill switches can…
    filed under advice
  8. Multiple similar scanners with GNU Flex (stackoverflow.com)stack

    22 points by Simon Richter in stackoverflow.com · 1h ago · stack

    I have two similar but different enough inputs formats and would like to build two different scanners for these, using GNU Flex. My two options are make one big definition, with two separate start conditions. This requires me to keep track of what kind of file I'm scanning, beca…
    filed under adviceflex-lexer
  9. Marketplace (Open Sharing) sharing Databricks Apps and SaaS [closed] (stackoverflow.com)stack

    21 points by Eddmik in stackoverflow.com · 1h ago · stack

    I want to understand the open sharing protocol (Marketplace), how it is sharing the apps, what artefact is shared when app is shared, is it sharing the app files from Workspace path directly? Secondly, how the SaaS is shared and what artefact is shared and how? Could not find do…
  10. Inconsistent return with std::expected and auto return [duplicate] (stackoverflow.com)stack

    20 points by Romain in stackoverflow.com · 1h ago · stack

    I am having a compile error I do not understand while using std::expected and auto return. Here is a simplified version of the code: #include <string> #include <tuple> #include <expected> std::expected<std::tuple<double,double,double,bool,bool>,std::string> func1(bool input){ if…
  11. A second operation was started on this context instance before a previous operation completed. This is usually caused by diff (stackoverflow.com)stack

    19 points by Usman in stackoverflow.com · 3h ago · stack

    I am getting the following exception on a source code path which loads the data with full tracking. But while navigating the child properties in lazy-loaded manner, it throws this exception. I don't know how can I get rid of this. I have already scene all other threads but they…
  12. How can I efficiently build historical sales data by tracking a product's cumulative sold count? [closed] (stackoverflow.com)stack

    17 points by faisal waris in stackoverflow.com · 8h ago · stack

    I'm developing a product-research application and need to calculate a product's 7-day and 30-day sales history from its publicly available cumulative sold count. For example, if I record: Day 1: 1,250 sold Day 2: 1,275 sold Day 3: 1,310 sold I can calculate the daily increase, b…
  13. Does ML Kit On-device Translation require written permission if the API is never executed on Android TV or Automotive? (stackoverflow.com)stack

    15 points by user33034655 in stackoverflow.com · 3d ago · stack

    We are developing an Android application that supports smartphones, Android TV, and Automotive/embedded Android devices. Our application uses ML Kit Image Description to generate an English description of an image. We then use ML Kit On-device Translation to translate the descri…
    filed under advicegoogle-mlkit
  14. How do I isort using ruff? (stackoverflow.com)stack

    14 points by Hai Vu in stackoverflow.com · 2y ago · stack

    I often work in very small projects which do not have config file. How do I use ruff in place of isort to sort the imports? I know that the following command is roughly equivalent to black : ruff format . The format command do not sort the imports. How do I do that?
    filed under pythonisortruff
  15. How to disable manifest mode in vcpkg? (stackoverflow.com)stack

    13 points by random_dev123 in stackoverflow.com · 3y ago · stack

    Vcpkg has a manifest mode where one specifies a vcpkg.json file with all the packages required for a project. I would like to temporarily disable this feature and instead use vcpkg install mypackage directly. However, if a vcpkg.json file is present in your root directory vcpkg…
    filed under c++vcpkg
  16. How to access reference in reusable workflow (stackoverflow.com)stack

    12 points by Kay in stackoverflow.com · 3y ago · stack

    Context A reusable workflow in public repos may be called by appending a reference which can be a SHA, a release tag, or a branch name, as for example: {owner}/{repo}/.github/workflows/{filename}@{ref} Githubs documentation states: When a reusable workflow is triggered by a call…
  17. How to get the elements from a table after all components are rendered? (stackoverflow.com)stack

    10 points by Gerald Hoxha in stackoverflow.com · 4y ago · stack

    I'm trying to test my UsersTable page in React, but the testing library gets the elements before they have time to render. Please check my code below: UsersTable.js import React, { useState, useEffect } from 'react'; import { Link } from 'react-router-dom'; import Table from 're…
  18. How to make v-data-table fill the available height? (stackoverflow.com)stack

    9 points by Sascha Herrmann in stackoverflow.com · 7y ago · stack

    I am using Vue.js and Vuetify. I have a page with various sections that contain configurable items for the user. The layout is a 2x2, so there are two items per row, and 2 rows. One of the items should contain a table showing alarms. The problem is the pagination. If I use the "…
    filed under vue.jsvuetify.js
  19. Firebase : Read-only & non-realtime mode activated to improve browser performance (stackoverflow.com)stack

    8 points by Veeresh Charantimath in stackoverflow.com · 10y ago · stack

    Read-only & non-realtime mode activated to improve browser performance Message pops up in my project and I'm unable to delete the nodes as well Also I read this https://groups.google.com/forum/#!topic/firebase-talk/qLxZCI8i47s Which states : If you have a lot of nodes in your Fi…
  20. Setting a fixed frame rate in Pygame, Python 3 (stackoverflow.com)stack

    7 points by Vladimir Shevyakov in stackoverflow.com · 10y ago · stack

    I'm currently making a game using Pygame (Python 3), and I'm looking for a way to make the game run at a fixed frame rate (unit FPS). Most of the game is located inside a giant while loop, where the user input is taken, sprites are rendered, etc. every tick. My goal is to be abl…
  21. IF statement based on dropdown result in google sheet (stackoverflow.com)stack

    6 points by Yoji Matsuyama in stackoverflow.com · 11y ago · stack

    I'm working with google sheet and seeking some help. Below is the situation and expected outcome. - there is Income column, Payment column, Currency column, Balance column Income and payment is where numbers are put USD, JPY, THB, SGD in dropdown for currency wrote below to dete…
  22. GLSL noise function on devices with no high precision fragment shader (stackoverflow.com)stack

    5 points by Bastl in stackoverflow.com · 11y ago · stack

    I'm looking for a noise function which is working on a none highp fragment shader. What I have tried: //http://stackoverflow.com/questions/4200224/random-noise-functions-for-glsl float snoise(vec2 co) { return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453); } //http:/…
  23. Implement paging (skip / take) functionality with this query (stackoverflow.com)stack

    4 points by Lars Holdgaard in stackoverflow.com · 13y ago · stack

    I have been trying to understand a little bit about how to implement custom paging in SQL, for instance reading articles like this one . I have the following query, which works perfectly. But I would like to implement paging with this one. SELECT TOP x PostId FROM ( SELECT PostI…
  24. Generate BIC from IBAN bank account number (stackoverflow.com)stack

    3 points by Tim in stackoverflow.com · 14y ago · stack

    Is there any existing library or script I can use to generate the BIC code from an IBAN bank account number (and other necessary information)? I've searched the web, but found only IBAN generators.
    filed under phpiban
  25. How do I hide the top toolbar of a Ext.Panel? (ExtJS 2.0) (stackoverflow.com)stack

    2 points by Gui Prá in stackoverflow.com · 16y ago · stack

    For some reason Ext.Panel.getTopToolbar() is returning an array of objects (the elements of the toolbar, but NOT the toolbar itself) and not an Ext.Toolbar. Because of that, I can't manage to hide an already set toolbar. How should I proceed? Sample code: function (panel) { aler…
    filed under extjstoolbar