jump to:allmastodonblueskylemmylobstersdevstackwikirsshn
wwebbit
view: | | |

Tech / everything · hot matching “r”

60 shown · updated 1m 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 · 4m 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 · 7m 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 · 10m 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 · 12m 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. Git Gud! (dev.to)dev

    60 points by @francistrdev in dev.to · 24h ago · 28 dev

    You heard me. Alright, that was mean lol. Though based on the title, you probably already knew the...
  6. Python subclass dircmp (stackoverflow.com)stack

    25 points by Damien in stackoverflow.com · 38m 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
  7. Olo (Color) (en.wikipedia.org)hn

    506 points by inigyou in news.ycombinator.com · 6d ago · 91 hn

  8. Does it make sense to switch to a Github Alternative ? (lobste.rs)lobsters

    77 points by dhruvp in lobste.rs · 24h ago · 81 lobsters

    Github has been down consistently over the last few months - does it make sense to switch to alternatives now? When do you think majority will switch? Edit : My thoughts on this - https://dhruv2038.bearblog.dev/github-has-an-availability-problem-is-it-time-to-look-elsewhere/
    filed under askprogramming
  9. The Amazon Tax (seths.blog)hn

    153 points by herbertl in news.ycombinator.com · 1h ago · 86 hn

  10. 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 · 46m 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
  11. 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
  12. Trump 2.0 has deleted or altered nearly 400 US datasets, endangering public health, education and more (theguardian.com)lemmy

    94 points by u/GolfFoxtrotLima in c/science · 1h ago · 1 lemmy2 lemmy

    cross-posted from: https://lemmy.world/post/50808662 > ***Health data appears to be most affected by administration’s attempt to wipe findings that don’t align with its priorities, tracker shows*** > > A database of federal law enforcement officer misconduct records. A survey…
    filed under sciencetechnology
  13. CSS: the bomb inside your inbox (portswigger.net)lobsters

    10 points by refp in lobste.rs · 1h ago · 1 lobsters

    > It's quite common for webmail clients to render untrusted CSS in a trusted UI. They attempt to make this safe using CSS sanitization. In this paper [Gareth Heyes] going to show you how to break out of trust boundaries, exfiltrate tokens, compromise 3rd party websites and even steal passwords.
    filed under security
  14. 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
  15. 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…
  16. 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…
  17. 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…
  18. Firefox’s Smart Window promises a better AI browser (theverge.com)rss

    editorial feed by Stevie Bonifield in The Verge · 1h ago · rss

    Starting today, AI chats in Firefox's Smart Window AI browsing mode can pull from current web info and show source links in chat responses through a partnership with Exa. Smart Window can also now automatically suggest tab groups and show visual previews of pages you previously…
  19. 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…
  20. "But Libraries also destroy books, AI critics are so dumb!!11" a) Libraries make sure to not destroy the last copies of rare books b) "someone else does the thing you criticise" i… (tldr.nettime.org)mastodon

    677 points by @tante@tldr.nettime.org in mastodon.social · 2h ago · 8 mastodon

    "But Libraries also destroy books, AI critics are so dumb!!11" a) Libraries make sure to not destroy the last copies of rare books b) "someone else does the thing you criticise" is not a good legitimization for the bad thing
more ›