jump to:allmastodonblueskylemmylobstersdevstackwikirsshn
wwebbit
view: | | |

Tech / everything · hot matching “ice”

16 shown · updated 1m ago · read only
  1. How to achieve adc sample for 1 shunt resistor foc (stackoverflow.com)stack

    29 points by mxmxlwlw in stackoverflow.com · 34m 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
  2. How to optimize nested conditional logic for dynamic tax calculations in Vanilla JavaScript? (stackoverflow.com)stack

    27 points by Waqas Solangi in stackoverflow.com · 39m 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
  3. Multiple similar scanners with GNU Flex (stackoverflow.com)stack

    24 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
  4. Trump 2.0 has deleted or altered nearly 400 US datasets, endangering public health, education and more (theguardian.com)lemmy

    126 points by u/GolfFoxtrotLima in c/technology · 1h ago · 2 lemmy1 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 technologyscience
  5. What software do you use daily in 2026? (lobste.rs)lobsters

    4 points by r1w1s1 in lobste.rs · 55m ago · 8 lobsters

    There was a similar thread here six years ago, and I'm curious how people's daily setups have changed since then. What does the software side of your daily setup look like in 2026? Operating system, desktop environment or window manager, terminal, shell, editor, browser, and any other tools you consider essential to your daily workflow. I'm especially interested in the small or less obvious tools that have become indispensable to you.
    filed under askpractices
  6. Is my method for managing individual event driven tasks in python asyncio overkill? (stackoverflow.com)stack

    17 points by iamthebull in stackoverflow.com · 2d ago · stack

    In my app I have resources that will create tasks that: are created by asynchronous events are independent from each other (i.e. cancellation of one task should not affect the others) have a finite life span shorter than the life span of the resource should have errors handled i…
  7. Does ML Kit On-device Translation require written permission if the API is never executed on Android TV or Automotive? (stackoverflow.com)stack

    16 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
  8. Composable Tests (newsletter.kentbeck.com)hn

    24 points by vinipolicena in news.ycombinator.com · 2h ago · 15 hn

  9. In C# what is the best way to detect that an optional parameter wasn't specified? (stackoverflow.com)stack

    15 points by Symfony-Wonderer in stackoverflow.com · 3d ago · stack

    I'm programming in C#, but I don't know -- see below, using Visual Studio 2022 (see below for the version), and I want to know how to best detect that an optional class constructor's parameter has been specified when called by the the new call. I know about using a default value…
  10. Playwright Login Logout Session Maintenance (Browser Context) (stackoverflow.com)stack

    14 points by Ivan in stackoverflow.com · 5d ago · stack

    Our company has a bank application where it requires maker/checker process. For instance, maker creates record, checker approves it. Thus, resulted following application flow. Maker log in and add records Maker log out Checker log in Checker approve and records insert into db I…
  11. GPU Offload in Rust: Portable, Safe, and Fast (arxiv.org)lobsters

    3 points by theelx in lobste.rs · 3h ago · 1 lobsters

    High-performance GPU programming has traditionally forced a compromise between execution efficiency and memory safety. While Rust guarantees compile-time memory safety for host CPUs via its strict ownership model, applying these constraints to massively parallel GPU execution environments has previously mandated either vendor-locked Domain-Specific Languages (DSLs) or escaping to explicit unsafe raw pointers. This paper presents a zero-overhead, multi-vendor GPU compilation framework built natively into the Rust compiler (rustc) and LLVM backends. We leverage Rust’s rich type system, ownership system, and strict aliasing guarantees (𝑛𝑜𝑎𝑙𝑖𝑎𝑠) to efficiently manage and optimize data transfers through LLVM’s Offload infrastructure. We expose the technical challenges of cross-vendor ABI lowering mismatches between Host and Device targets and introduce a two-pass compilation pipeline capable of safely handling both manual and compiler-generated memory movements. Evaluating our framework on RAJAPerf demonstrates that our rustc-based solution can generate competitive LLVM IR for GPU kernels, achieving a solid kernel performance against native, hand-optimized CUDA and HIP C++ baselines.
    filed under compilerspdfrust
  12. How to skip linting when particular microservices folder have changes in README? If another have code changes then it will run (stackoverflow.com)stack

    13 points by Nenis Rudani in stackoverflow.com · 19d ago · stack

    This is my workflow where I have multiple microservices: name: Lint2 Microservices on: # second list pull_request: # on a pull request to each of these branches types: [opened, synchronize, edited, ready_for_review] branches: - load-test paths-ignore: - '**.md' - '**/temp.env' -…
  13. GLSL noise function on devices with no high precision fragment shader (stackoverflow.com)stack

    6 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:/…