News Nug |
---|
Track your devices via Apple FindMy network in Go/TinyGo Published: 2025-01-11 | Origin: Hacker News The content discusses the use of OpenHaystack and Macless-Haystack for tracking personal Bluetooth devices via Apple's "Find My" network without the need for Apple hardware. It highlights the Go Haystack package, which utilizes tools written in Go/TinyGo and provides firmware for compatible devices, including Raspberry Pi and other embedded systems. The contents also mention TinyScan, a scanner for local devices that runs on various microcontroller boards, and provide instructions for setting up the service, including the necessity of an |
I posted about using RSpec with the 3A and the CQS patterns. What patterns do you apply to writing specs? Published: 2025-01-11 | Origin: /r/ruby The article discusses the effectiveness of the Arrange-Act-Assert (AAA) pattern in structuring tests, particularly within the RSpec framework for Ruby. It emphasizes the importance of writing clear, understandable tests that benefit both the developer and the maintainers. Automated tests provide rapid feedback and serve as documentation of the system's behavior. To maximize these benefits, tests should be brief, explicit, and predictable. The AAA pattern enhances test structure, making them easier to read and modify. Although RSpec uses different |
Extra, Extra - Read All About It: Nearly All Binary Searches and Mergesorts are Broken Published: 2025-01-11 | Origin: /r/programming The content emphasizes the commitment to fostering a diverse research environment focused on various research types, time scales, and risk levels. Researchers contribute to advancements in computer science through both fundamental and applied research and often open-source their projects, promoting collaboration with the broader research community. They make tools, products, and datasets accessible to encourage a more cooperative ecosystem and actively support emerging researchers through programming initiatives. Engaging with academic institutions and participating in events is highlighted as vital for progress in their work. The post by Joshua Blo |
Hyundai just launched its cheapest EV in Japan Published: 2025-01-11 | Origin: Hacker News Hyundai has launched its most affordable electric vehicle (EV), the Inster EV, in Japan, starting at $18,000 (2,849,000 yen). This makes it cheaper than competitors like BYD’s Dolphin, which starts at around $24,500. The Inster, also known as the Casper Electric in Korea, is Hyundai’s fourth EV and has already seen success in its home market. It offers two battery options (42 or 49 kWh) and a driving range |
How to Handle Hot Shard Problem? Published: 2025-01-11 | Origin: /r/programming As software applications experience increasing data, they may encounter limitations in memory, storage, or network capacity, affecting system performance and availability. To address these issues, data can be moved to larger machines (monolith) or distributed into smaller segments across multiple machines (sharding). The objective of sharding is to prevent resource constraints that could hinder data operations. However, once data is sharded, challenges such as the thundering herd problem or co-location of high throughput accounts can arise, leading to " |
Be aware of the Makefile effect - ENOSUCHBLOG Published: 2025-01-10 | Origin: /r/programming The concept of the "Makefile effect" describes a tendency among engineers to copy and modify existing code or configurations instead of creating something new from scratch. This behavior is often seen with complex tools, like Make, where users prefer to tweak known-good examples to minimize errors and simplify the problem-solving process. While this approach is efficient in the short term, it indicates a flaw in the tool's design, suggesting it is overly complicated or cumbersome to use directly. The Makefile effect highlights several issues with tool |
Very Wrong Math Published: 2025-01-10 | Origin: Hacker News The text discusses a post made by a design and construction company, initially questioning whether it was a joke due to its misleading information. It contrasts misinformation (ignorance) and disinformation (malice), and mentions trolling as a separate phenomenon. The author analyzes the inaccuracies in a graphical representation of circular arcs related to flight distances. They point out that while the depicted arcs suggest a significant difference in length, the calculation neglects the Earth's actual radius, which is vastly larger than implied. Ultimately, the analysis |
Portals and Quake Published: 2025-01-10 | Origin: Hacker News The content discusses the first installment of the "Demystifying the PVS" series, which explores the precomputed visibility technique used in games like Quake, Half-Life, and those built on the Source Engine. The author developed a Python tool, vis.py, to reimplement this algorithm. The focus is on addressing the issue of overdraw in 3D rendering, where the same pixel is unnecessarily written multiple times, which can be problematic for performance, particularly on older hardware. To mitigate over |
Cannonball: An enhanced OutRun engine Published: 2025-01-10 | Origin: Hacker News CannonBall is an enhanced game engine for the OutRun arcade game, rewritten in C++ from its original assembler code to support modern platforms with features like higher frame rates and widescreen. It requires the original ROMs for graphics and audio. Chris White, the project creator, maintains the Windows build, but other ports for Linux, Wii, Mac, and Raspberry Pi are managed by different individuals. CannonBall utilizes the SDL 2 and Boost libraries and has deprecated support for SDL 1. Users |
Shavarsh Karapetyan Published: 2025-01-10 | Origin: Hacker News Shavarsh Karapetyan (born May 19, 1953) is a retired Soviet finswimmer notable for heroically rescuing 20 individuals during a 1976 trolleybus accident in Yerevan, Armenia. Born in Kirovakan (now Vanadzor), he moved to Yerevan with his family at a young age and later pursued finswimming after training in swimming. In 1974, he prevented a bus disaster by taking control of a rolling |
Beware with "mail" gem email parsing and encoding Published: 2025-01-10 | Origin: /r/ruby The content discusses the complexities and vulnerabilities associated with email parsing in web applications, particularly how discrepancies in email address parsing can lead to access control bypasses and remote code execution (RCE). It highlights the lenient standards established by longstanding RFCs (Request for Comments), which complicate the development of reliable email parsers. As a result, many web applications depend on third-party email parsing libraries without fully understanding how they process email addresses, leading to potential security issues when decisions are made based on email domains |
Class Pollution in Ruby: A Deep Dive into Exploiting Recursive Merges · Doyensec's Blog Published: 2025-01-10 | Origin: /r/ruby The post from Doyensec LLC discusses a specific type of vulnerability in Ruby called class pollution, an idea derived from the concept of prototype pollution in JavaScript. Class pollution can be mainly categorized into three types: 1. **Merge on Hashes**: Class pollution is not applicable as the merge operation is contained within the hash. 2. **Merge on Attributes (Non-Recursive)**: This involves poisoning instance variables of an object, potentially replacing methods and altering the object's behavior without affecting the |
The Ruby on Rails _json Juggling Attack Published: 2025-01-10 | Origin: /r/ruby Ruby on Rails is a web framework that utilizes the params object, an instance of ActionController::Parameters, to manage user-provided data through key-value pairs. This object collects data from the request body, query strings, and route paths. A notable vulnerability, called the _json juggling attack, exploits JSON parsing within Rails by allowing attackers to supply a JSON object with a "_json" key. This creates a conflict between single and multi-item JSON structures, leading to potential authorization bypass issues when the authorization |
Phi-4 Bug Fixes Published: 2025-01-10 | Origin: Hacker News Failed to fetch content - HTTP Status - 403 |
I quit my job to work on my programming language Published: 2025-01-10 | Origin: /r/programming The author announces their decision to fully commit to developing their programming language, jank, by resigning from their current job, effective Wednesday. This choice comes after a decade of exploring programming language design, initially motivated by their need for safer systems with robust compile-time meta programming and improved parallelism beyond what C++ could offer. The author has experimented with various languages, including Rust, Common Lisp, OCaml, Haskell, and Clojure, finding value in Rust and Clojure that significantly |
Cuttle – a MTG like game using a standard 52 card deck Published: 2025-01-10 | Origin: Hacker News The content describes a two-player card game called Cuttle, which emerged in North America in the 1970s and is considered one of the earliest examples of a combat card game, predating later games like Magic the Gathering. Players aim to build a layout of cards totaling at least 21 points to win. Each player is dealt a hand of cards from a standard 52-card deck, with one player starting the game. Players take turns playing cards to form their layouts and can attack their opponent |
OpenTofu 1.9.0 is out with provider for_each! Published: 2025-01-10 | Origin: /r/programming OpenTofu has released version 1.9.0, marking the one-year anniversary of its initial 1.6 release. This update introduces several long-requested features, notably the provider for_each, facilitating multi-zone and multi-region deployments. As part of their support policy, 1.6 is no longer supported and users are encouraged to upgrade to at least 1.7. The release saw a remarkable increase in usage, with registry requests tripling to over 6 million per day |
Finland's zero homeless strategy (2021) Published: 2025-01-10 | Origin: Hacker News The ECOSCOPE report by Laurence Boone, Boris Cournède, and Marissa Plouin discusses the impact of the COVID-19 pandemic on homelessness across OECD countries. In response to rising homelessness, many governments implemented significant public support measures, such as quickly providing housing to homeless individuals. The report highlights the UK as an example, where individuals living on the streets or in shelters were housed in individual accommodations within days. To sustain this progress, the report looks to Finland's long-term strategy, which |
Another Gameboy Emulator written in C3 Published: 2025-01-10 | Origin: /r/programming The organization values and carefully reviews all feedback received. For information on available qualifiers, please refer to their documentation. |
Chrome Extensions Exploit Keyword Manipulation Loophole Published: 2025-01-10 | Origin: /r/programming CyberInsider reports on a recent investigation by Wladimir Palant, which reveals that many Chrome Web Store extensions exploit a loophole to manipulate search rankings using misleading descriptions and irrelevant keywords. This manipulation clutters search results, often burying legitimate extensions under unrelated options. Developers are taking advantage of Chrome's multilingual support by filling less-used language fields with competitive keywords, affecting global search results. For instance, searching for "Norton Password Manager" sometimes yields unrelated extensions at the top. Despite Google's policies against |