News Nug
Cool gamedev war story : How I Defeated An MMO Game Hack Author

Published: 2024-10-22 | Origin: /r/programming

In the late 2000s, the author worked for a small MMO game company with a dedicated player base that enjoyed its skill-based gameplay. Following rumors of a hack for their game, players grew frustrated, believing that those who defeated them were using cheats. With limited resources and only a few programmers, the author volunteered to investigate the issue. They discovered a hack being sold by a Chinese company, which was likely reselling someone else's original work. Curious, the author purchased the hack anonymously and found

Introducing Mellum: JetBrains’ New LLM Built for Developers

Published: 2024-10-22 | Origin: /r/programming

JetBrains has launched Mellum, a proprietary large language model (LLM) designed specifically for software developers, currently accessible through JetBrains AI Assistant. Mellum focuses on optimized, low-latency code completion, offering faster and more contextually aware suggestions than many existing third-party models. It supports popular programming languages such as Java, Kotlin, Python, Go, and PHP, with expansion available through an Early Access Program. User feedback has been positive, highlighting Mellum's efficiency and deep integration with

`hide_const`, the RSpec helper that I had never used before

Published: 2024-10-22 | Origin: /r/ruby

The author shares their positive experience with test-driven development (TDD), highlighting improvements in code simplicity and reliability. While learning TDD, they encountered a challenge testing an extension that relies on an optional dependency. They detail their approach to writing tests for the extension's availability based on whether the dependency is installed. The author describes a technique to simulate the absence of the dependency by manipulating Ruby constants, although they find this method lacking in elegance and overly reliant on Ruby's internal mechanics.

New Episode of Code and the Coding Coders who Code it! Episode 42 with Cody Norman

Published: 2024-10-22 | Origin: /r/ruby

The podcast features new episodes every first Tuesday of the month, focusing on Ruby, Rails, JavaScript, and related topics. Each episode addresses three main questions: current projects, obstacles, and cool things to share. This episode highlights Cody Norman, an independent Ruby on Rails consultant and creator of SpotSquid, who discusses his innovative approach to merging technology with the tattoo industry. He transformed a paper-based business model using customer feedback and tackled unique challenges faced by tattoo artists and shop owners. Cody shares

NextCloud Android app update has a bug syncing the whole server content over and over, leaving users with high data bills.

Published: 2024-10-22 | Origin: /r/programming

The content emphasizes that all feedback is read and taken seriously. It mentions issues with syncing files, noting that the system should not sync files unless they were explicitly synced before, but currently syncs all files every time. The mention of specific devices (Pixel 7a) and software versions (3.30.1 RC1, 29.0.0) suggests it is related to a technical context. There is also a note about personal information in logs that the user does not wish to share

Testing REST endpoints with fake HTTP statuses

Published: 2024-10-22 | Origin: /r/programming

Corey Cleary discusses the challenges of testing how an application responds to various HTTP status codes from an external REST API. He emphasizes the importance of testing actual API responses, particularly in scenarios where manual QA teams need to verify behaviors, such as displaying error pages for 500 status codes. Cleary notes that while mocking or stubbing responses can be effective, it often complicates the testing process and slows development. He suggests an alternative: using third-party services like httpstat.us, which allows developers and

20 years of Linux on the Desktop

Published: 2024-10-22 | Origin: /r/programming

In a reflection shared by Ploum on October 20, 2024, the author recounts their journey into the world of Linux two decades ago, realizing it was suitable for desktop use. As a teenager, Ploum often helped friends and family with their infested Windows computers, becoming frustrated with the constant maintenance and malware issues. To escape the role of an unpaid IT technician, Ploum offered to install Linux instead, which some accepted. Equipped with Knoppix and Debian Woody CD

Prevent Mistakes with NOMERGE Comments in CI/CD Pipelines

Published: 2024-10-22 | Origin: /r/programming

In a recent blog post, Steven Waterman reflects on common coding pitfalls, such as leaving console logs in production, forgetting tasks before releasing code, and commenting out crucial code without re-adding it. At TalkJS, they created a solution called NOMERGE comments, which serve as reminders or TODOs that fail CI checks if left unresolved. This approach, implemented through GitHub actions, helps ensure that important tasks are completed before code is released. While acknowledging other tools like linting and testing can

What happens when you make a move in lichess.org?

Published: 2024-10-22 | Origin: /r/programming

The post by @dreis_sw delves into the backend processes of Lichess.org, a popular open-source online chess platform. It discusses how real-time gameplay is facilitated via a robust infrastructure, focusing on data flow when a player makes a move. Utilizing Chrome DevTools, particularly the Network tab, the author explains the use of WebSocket connections for instant communication between the client (browser) and server. The flow includes the client sending a move message, receiving an acknowledgment, and then getting details

Marj - A Minimal ActiveRecord Jobs library

Published: 2024-10-22 | Origin: /r/ruby

Failed to fetch content - HTTP Error - Failed to open TCP connection to :80 (Connection refused - connect(2) for nil port 80)

A guide to scheduled jobs with Sidekiq

Published: 2024-10-22 | Origin: /r/ruby

Sidekiq is a widely-used open-source background job library for Ruby, particularly popular as a backend for ActiveJob in Rails applications. It utilizes Redis for managing queues and jobs, which contributes to its speed. The article discusses how to run background jobs asynchronously using Sidekiq, both with and without ActiveJob. Additionally, it covers scheduling jobs to run after a specified time or at a specific time. The process of writing a background job in Ruby with Sidekiq is similar regardless of whether Active

Bugs or features? simple parts working together in weird ways — emergence at work

Published: 2024-10-21 | Origin: /r/programming

The article, marking its 42nd entry of the year, draws a parallel between the number 42 from *The Hitchhiker’s Guide to the Galaxy* and the concept of "emergence," which the author posits as the answer to understanding complex systems. Emergence refers to the unpredictable complex behaviors arising from simple interactions among system components, such as cells forming life or birds creating flying formations. The author emphasizes that while we cannot fully predict emergent behaviors, recognizing their potential is

Attacking APIs using JSON Injection

Published: 2024-10-21 | Origin: /r/programming

In a recent blog post, Dana Epp discusses a serious security vulnerability involving Samsung devices that allowed for an attack chain leading to code execution on affected devices. The issue arises from a JSON injection vulnerability in the Samsung Smart Hub, a device that controls various IoT gadgets. The hub communicates remotely with its mobile app and processes live streams from connected smart cameras. The vulnerability was triggered by sending a malicious POST request to the hub's /credentials endpoint, which could modify connection credentials and result in SQL injection,

BouncyHsm - software simulator of HSM and smartcard simulator with HTML UI, REST API and PKCS#11 interface (better than SoftHsm2)

Published: 2024-10-21 | Origin: /r/programming

Bouncy Hsm is a software simulator designed to mimic hardware security modules (HSM) and smart card functionality, featuring an HTML user interface, REST API, and PKCS#11 interface. It is targeted at developers for the purpose of application development and testing related to PKCS#11 devices. However, it is important to note that Bouncy Hsm is not intended for use with production data, as it lacks protection for stored data and keys. The project was initiated as an alternative to Soft

The IPv6 Transition

Published: 2024-10-21 | Origin: /r/programming

The article reflects on the ongoing transition from IPv4 to IPv6, emphasizing that despite the publication of the first IPv6 specification in 1998 and the exhaustion of IPv4 addresses over a decade ago, the shift to IPv6 remains slow. The author notes that many users still rely on IPv4, indicating a lack of urgency for the transition. They highlight the importance of monitoring IPv6 adoption, which has been tracked by APNIC Labs for over ten years, measuring how many users can access services

Using AI Generated Code Will Make You a Bad Programmer

Published: 2024-10-21 | Origin: /r/programming

The author expresses a critical view of using AI-generated code, emphasizing that it undermines self-improvement and pride in one’s work. They distinguish between using AI as a learning tool and relying on it to write code, the latter being akin to "script kiddies" who perform tasks without understanding. The comparison suggests that those who regularly depend on AI for coding miss the opportunity to develop genuine skills, much like script kiddies who run downloaded hacking scripts but lack real hacking knowledge. The author argues that

Rails 7.1 adds adapter option to disallow foreign keys

Published: 2024-10-21 | Origin: /r/ruby

The author is a full-stack Software Engineer experienced in React, Javascript, and Rails, who has been working remotely for two years. Previously, they founded a hyperlocal delivery startup called kwiq. They discuss the role of adapters in Rails for connecting to different databases and the importance of foreign keys for maintaining data integrity between tables. The author highlights the challenges of temporarily disabling foreign keys during data imports, which requires cumbersome manual migrations for each table. They note that Rails 7.1 introduces an option to

C++ + OpenGL - Voxel Cone Tracing - test scene - McGuire Archive - breakfast room

Published: 2024-10-21 | Origin: /r/programming

Of course! Please provide the content you'd like summarized.

LLMs Aren't Any Good at Ranking People

Published: 2024-10-21 | Origin: /r/programming

The author reflects on the challenge of justifying their interest in AI, specifically in large language models (LLMs), amidst the surge of hype around them. Initially, they felt frustrated by the pressure to explain their enthusiasm, but this led to a clearer understanding of why they find LLMs significant. LLMs, despite their limitations, exhibit a level of comprehension of complex human concepts that computers have struggled with until recently. The author notes that many app ideas fail due to the difficulty in translating fuzzy

Understanding Kafka with Factorio

Published: 2024-10-21 | Origin: /r/programming

The author compares the game Factorio to Apache Kafka, noting their similarities in managing systems and optimizing processes. Factorio involves building and managing supply chains in a game environment, while Kafka is a distributed streaming platform designed for durable asynchronous communication. The analogy explores core Kafka concepts using Factorio visuals, illustrating how microservices (like iron mining, smelting, and production) can face challenges when tightly coupled through synchronous HTTP calls. The author points out that failures, like a power outage, can lead to cascading