News Nug
I made a solution to malicious code in codebases that works

Published: 2025-02-24 | Origin: /r/programming

The content describes a self-hosted GitHub app named PRevent, designed to enhance security by preventing the merging of malicious code in pull requests. The app listens for pull request events and scans for malicious code, directly commenting on any detections. Unlike traditional security scans that can be bypassed, this app provides a more secure and flexible solution by ensuring scans cannot be manipulated. PRevent specifically detects dynamic code execution and obfuscation, which are common in malicious attacks but rare in legitimate code

Why does target=”_blank” have an underscore in front?

Published: 2025-02-24 | Origin: /r/programming

Kyrylo Silin explains the usage of the underscore in the HTML target attribute, specifically target="_blank." Historically, developers used the `<frameset>` tag to create single-page application (SPA)-like experiences, where links could load content into specific frames. If a frame named "blank" was targeted but did not exist, the browser would open a new window instead. The underscore in target="_blank" serves to indicate that the link should open in a new tab, eliminating confusion with frame names

Show HN: I built an app to stop me doomscrolling by touching grass

Published: 2025-02-24 | Origin: Hacker News

Sure! Please provide the content you would like me to summarize.

Freelancing: How I found clients, part 1

Published: 2025-02-24 | Origin: Hacker News

The author reflects on their journey to securing clients as an independent freelancer, noting that it took two years to land their first client, six months for the second, and just six weeks for the third. After much trial and error, they are now able to share a structured process to help others find work, especially during current economic challenges. Although they haven't sought new clients since 2023 due to long-term contracts, they aim to present their insights in four stages: preparation, marketing, sales, and

Entity Framework Core query plan Visual Studio visualizer

Published: 2025-02-24 | Origin: /r/programming

The Entity Framework Core query plan debugger visualizer allows you to view query plans for your queries directly in Visual Studio. It supports various databases including SQL Server, PostgreSQL, SQLite, MySQL, and Oracle. To use it, simply hover over your queries during debugging, select 'Query Plan Visualizer', and the query plan will be displayed.

Fortune(6) – Linux Man Page

Published: 2025-02-24 | Origin: Hacker News

Failed to fetch content - HTTP Status - 403

Hyperswitch 2.0: It's been 2 years since we launched here, now a Modular Payments Solution – Pick what you need

Published: 2025-02-24 | Origin: /r/programming

Hyperswitch is an open-source payment processing solution developed in Rust, designed to facilitate fast, reliable, and affordable payment transactions. It comprises several key components: 1. **Hyperswitch Backend**: This component handles seamless payment processing, supporting various flows such as authorization, authentication, void and capture, and managing post-payment processes like refunds and chargebacks. It also accommodates non-payment use cases with external connections and features customizable payment routing strategies. 2. **SDK (Frontend)**: Available for web

OpenAI Researchers Find That AI Is Unable to Solve Most Coding Problems

Published: 2025-02-24 | Origin: Hacker News

OpenAI researchers have acknowledged that their advanced AI models, including GPT-4o, are currently inferior to human coders, despite CEO Sam Altman's optimism that they might surpass "low-level" software engineers by the end of the year. A recent study using the SWE-Lancer benchmark, which evaluates performance on over 1,400 software engineering tasks from Upwork, showed that these models struggle to solve the majority of coding tasks. The models were tested on two types of tasks: fixing bugs and

Bootstrapping Small-c in transputer along an operating system in 1995

Published: 2025-02-24 | Origin: /r/programming

Of course! Please provide the content you would like me to summarize.

Gossip and Consensus: Using Serf and Raft to Build a Kafka-esque System

Published: 2025-02-24 | Origin: /r/programming

The author is undertaking the ambitious project of creating a personal implementation of Apache Kafka called MonKafka. Initially, they successfully enabled message production and consumption through a subset of Kafka's protocol. However, the real challenge lies in developing a distributed system that is scalable, resilient, and consistent, capable of handling massive data volumes. Historically, Apache Kafka relied on Zookeeper for state management and cluster coordination. This was replaced by Kraft, which integrates these functions directly within Kafka using the Raft consensus algorithm. The

DeepSeek Open Source FlashMLA – MLA Decoding Kernel for Hopper GPUs

Published: 2025-02-24 | Origin: Hacker News

FlashMLA is an optimized MLA decoding kernel designed for Hopper GPUs. It supports variable-length sequences and is capable of achieving impressive performance metrics—up to 3000 GB/s in memory-bound configurations and 580 TFLOPS in computation-bound setups on the H800 SXM5, utilizing CUDA 12.6. The development of FlashMLA draws inspiration from FlashAttention versions 2 and 3, as well as the Cutlass projects. User feedback is highly valued, and comprehensive documentation is

Write the post you wish you'd found

Published: 2025-02-24 | Origin: Hacker News

The author has been blogging more than usual due to a minor medical issue and reflects on their previous posts. They conclude that their best entries often follow a pattern of learning something new and summarizing it as a tutorial, which serves two purposes: solidifying their own knowledge and being useful to others. They emphasize that teaching someone else is a key to understanding. The author notes that many visitors find their blog through searches for topics they've covered, indicating these posts resonate with a broader audience. To continue this effort

Sublinear Time Algorithms

Published: 2025-02-23 | Origin: Hacker News

Sublinear time algorithms are challenging as they typically require accessing only a small portion of the input. While some deterministic exact sublinear time algorithms exist, most natural problems necessitate randomized approaches that provide approximate solutions. Recent developments indicate that classical optimization problems can be approximated in sublinear time, and property testing—an alternative approximation method for decision problems—has been leveraged to create sublinear algorithms for various issues. Additionally, certain properties of distributions can be tested using samples, also in sublinear time. Numer

I did a thing, Effconnpy. Python library for causal time series analysis

Published: 2025-02-23 | Origin: /r/programming

Effconnpy is a Python library designed for causal inference and connectivity analysis in brain time series data, specifically tailored for neuroimaging data pre-processed and parcellated into .tsv format files. It offers both bivariate and multivariate causal inference methods, though the multivariate implementations are not fully tested and considered non-state-of-the-art. The library includes a causal time series generator script and encourages user contributions, adhering to the MIT License. Feedback from users is taken seriously, and documentation provides

Defragging my old Dell's UEFI NVRAM

Published: 2025-02-23 | Origin: Hacker News

The author is working on setting up an old 2011 Dell computer by migrating to new boot drives and configuring GRUB. They encountered an error related to EFI variables, indicating there was no space left on the device, despite not having many boot entries. They suspected there might be unused space in the NVRAM. To address this, they used commands in an EFI shell (with a cautionary note about potential risks) to clear out the space. After executing the commands, they rebooted the

Ask HN: What are you working on? (February 2025)

Published: 2025-02-23 | Origin: Hacker News

The content consists of several replies with links and descriptions related to different projects and tools. 1. **Inclusive Colors**: This site allows users to create a comprehensive color palette, offering precise control over shades and ensuring color pairs meet WCAG accessibility standards to avoid low contrast issues in design. 2. **GitHub Repositories**: - **Eli** and **Tyred**: These are databases focused on typed relational access. - **Chunked-z-level-raycaster**:

Tokio and Prctl = Nasty Bug

Published: 2025-02-23 | Origin: Hacker News

On February 23, 2025, a discussion on Reddit highlighted an intriguing bug that emerged in HyperQueue, a distributed task scheduler written in Rust. Despite its reliability, version 0.21.0 introduced significant issues where tasks were prematurely terminating. One particularly odd instance involved tasks succeeding until the final execution failed regardless of the task's nature. With the help of a user-provided reproducer, it was found that tasks running Python functions with a sleep time of exactly 10 seconds would fail

Partnering with the Shawnee Tribe for Civilization VII

Published: 2025-02-23 | Origin: Hacker News

Firaxis Games is committed to authentically representing cultures in the Civilization series. For Civilization VII, they collaborated with Ben Barnes, the chief of the Shawnee Tribe, to integrate Shawnee history meaningfully into the game. This partnership not only improved the portrayal of the Shawnee civilization and its leader Tecumseh, voiced by Shawnee actor Dillon Dean, but also supported the preservation of Shawnee language and culture. The collaboration included using the Shawnee language in-game and consulting cultural knowledge-keepers.

A discussion between John Ousterhout and Robert Martin about differences between John's book "A Philosophy of Software Design" and Bob's book "Clean Code"

Published: 2025-02-23 | Origin: /r/programming

The content involves a discussion between John Ousterhout and Robert "Uncle Bob" Martin about their differing philosophies on software design, as expressed in their respective books "A Philosophy of Software Design" (APOSD) and "Clean Code." Both authors acknowledge their shared goals in software design while identifying significant differences, particularly regarding method length, comments, and test-driven development (TDD). Ousterhout emphasizes that his primary aim in software design is to reduce complexity, which he associates with the amount

Show HN: Jq-Like Tool for Markdown

Published: 2025-02-23 | Origin: Hacker News

The content discusses "mdq," a tool designed to help users navigate and extract specific elements from Markdown documents, similar to how "jq" operates for JSON. It allows users to easily find particular sections or items, such as uncompleted tasks in GitHub PR templates, without having to rely on complex regex patterns. The filter syntax is designed to mimic Markdown, enabling users to filter sections and lists effectively. mdq is available under Apache 2.0 or MIT licenses and offers a user-friendly approach