SShortSingh.
0
ProgrammingDEV Community ·

Ruby Blocks and yield Explained with Simple, Practical Examples

A tutorial on the DEV Community breaks down two fundamental Ruby concepts — blocks and yield — using minimal code examples. A block is a chunk of code passed to a method, written using curly braces or do...end syntax, while yield is the instruction inside a method that executes that passed block. The article demonstrates how yield can be called multiple times and can pass values back to the block. It highlights a common Ruby design pattern where yield is sandwiched between setup and teardown logic, such as temporarily changing a log level or measuring execution time. Using ensure alongside yield guarantees cleanup code runs even if an error occurs, keeping shared logic centralized and callers focused only on their specific task.

0
ProgrammingDEV Community ·

Five AI Terms Explained Simply: Context Windows, RAG, Fine-Tuning and More

A developer essay argues that widespread misuse of AI jargon — including conflating RAG with fine-tuning — reflects a broad gap between the vocabulary people use and their actual understanding of the tools. The piece explains five core AI concepts through plain analogies: a context window is the limited working memory an AI holds during a conversation, while RAG (Retrieval-Augmented Generation) lets a model fetch external documents before answering rather than relying solely on trained knowledge. Fine-tuning, by contrast, reshapes a model's behavior through repeated task-specific training and is not a substitute for RAG when the problem is missing information. Hallucination describes an AI generating false information with the same confident tone as accurate responses, because the model has no inherent mechanism for expressing uncertainty. The author contends that understanding these distinctions has practical cost implications, particularly when teams apply the wrong solution — such as fine-tuning a model when simply providing it with the relevant document would suffice.

0
IndiaTimes of India ·

Australia's 1981 White Cliffs Solar Power Station Receives Heritage Listing

Australia's White Cliffs solar power station, built in 1981, has been granted heritage listing recognition. Located in a remote outback region, the facility has supplied electricity to a small local community for over a decade. It stands as one of Australia's earliest operational solar energy installations, demonstrating the viability of renewable power in extreme climatic conditions. The heritage listing acknowledges the station's historical significance in shaping Australia's renewable energy journey and its role as a symbol of the country's long-standing sustainable energy ambitions.

0
IndiaTimes of India ·

20 Cats Found Dead in Mumbai's Chembur; PETA Offers Rs 50,000 Reward

Nearly 20 cats were discovered killed and mutilated in the Panjrapole area of Chembur, Mumbai. Local animal caregiver Rubeena Pathan brought the disturbing incident to the attention of authorities. Animal rights organisation PETA India has announced a reward of Rs 50,000 for information leading to the arrest of those responsible. Police are currently examining CCTV footage from the area to identify the perpetrators. A case has been registered under sections related to animal cruelty and the Indian Penal Code.

0
ProgrammingDEV Community ·

Developer Builds Always-On AI Assistant That Stores Everything Locally, No Wake Word

A developer has created an AI assistant called Karl that operates without a wake word, running continuously in the background on a user's device. Unlike mainstream voice assistants such as Siri, Alexa, or Google Assistant, Karl processes all voice data locally, with no data sent to the cloud. The assistant is designed to retain every conversation indefinitely, eliminating the need for users to repeat context across sessions. Karl can perform tasks like opening apps, making calls, and setting reminders, all while keeping user data private and off third-party servers. The project reflects a broader developer concern about AI systems that collect and store personal voice data without meaningful user control.

0
IndiaTimes of India ·

Apple Launches iPhone Duo, iPhone 18 Pro and Pro Max With A20 Pro Chip

Apple has officially unveiled its first foldable smartphone, the iPhone Duo, alongside the iPhone 18 Pro and Pro Max. The iPhone Duo features a large inner display paired with a smaller outer screen, marking Apple's entry into the foldable phone segment. The iPhone 18 Pro models come equipped with a 48MP camera system and improved battery life over their predecessors. All three devices are powered by Apple's new A20 Pro chip and support eSIM-only connectivity. Apple has announced pre-order details and availability dates for the Indian market.

0
ProgrammingDEV Community ·

Australian Developer Launches Wabe Labs, Registers Brand and Domain in Week Three

Brett Anthony Ryan has officially established Wabe Labs, a solo software startup based in Australia, during the third week of his founder journey. The brand name was inspired by the word 'wabe' from Lewis Carroll's Through the Looking-Glass, chosen through an AI-assisted naming process that drew on Carroll's texts. Ryan secured the domain wabelabs.com at retail pricing and registered the business name with ASIC under a sole-trader Australian Business Number. As a sole trader rather than an incorporated entity, his personal name remains the legal contracting identity for licenses and agreements. The milestone marked a psychological shift for Ryan, who described securing the name as a concrete declaration of commitment to the venture.

0
Crypto & Web3CoinDesk ·

Coinbase CEO: Crypto industry gains clarity with or without Senate bill vote

Coinbase CEO Brian Armstrong stated that the cryptocurrency industry stands to gain regulatory clarity regardless of the outcome of the Senate's vote on the Clarity Act. Armstrong made these remarks in an interview with CNBC, expressing confidence in the sector's regulatory trajectory. The Senate is scheduled to vote on the bill on September 15. Armstrong suggested that the broader momentum toward crypto regulation means the industry benefits either way the vote goes.

0
ProgrammingDEV Community ·

How Redirect Chains Let Malicious Ads Slip Past Ad Blockers

Malicious Google Ads rarely link directly to harmful domains; instead, attackers route users through a series of rapid 302 redirects that cycle through freshly registered domains faster than static blocklists can update. Because traditional blocklists only evaluate the final destination, new domains can be exploited and abandoned before they are ever flagged. Security researchers argue that behavioral signals — such as hop count, timing between redirects, and repeated stripping of referrer headers — are more reliable indicators of malicious activity than domain reputation alone. A Python-based tool has been proposed that follows redirect chains using lightweight HEAD requests, recording timing and header data at each hop to generate a dynamic risk score. The analyzer can be further customized with a YAML configuration file to set hop limits, scoring thresholds, and whitelists for known legitimate ad domains.

0
ProgrammingDEV Community ·

Developer Uses FFmpeg and librsvg to Convert SVG Logo to PNG via CLI

A developer building a self-hosted publishing platform with LinkedIn integration needed to convert an SVG logo to PNG without using ad-supported online tools. The initial attempt using FFmpeg 8.1 failed because the default Homebrew build lacked an SVG decoder. To resolve this, the developer uninstalled the standard FFmpeg package and reinstalled a custom Homebrew tap version compiled with librsvg support. The process, though straightforward in principle, took around 30 minutes due to slow package compilation. Once the correct FFmpeg build was in place, a simple scale filter command successfully produced the required PNG output.

0
ProgrammingDEV Community ·

How a Single Malicious PyPI Package Can Silently Compromise Your Entire Pipeline

Malicious Python packages distributed via PyPI have been used in real 2026 incidents to silently infiltrate developer workstations and CI/CD pipelines without triggering any visible alerts. Attackers commonly use typosquatting — registering package names nearly identical to popular libraries — to trick developers or automated systems into installing harmful code. Because Python's packaging model allows code execution during installation, a compromised package can cause damage before an application even imports it. Once executed, malicious packages can harvest sensitive credentials including AWS keys, GitHub tokens, SSH keys, and cloud configuration files, then transmit them to attacker-controlled servers. Security experts recommend using lockfiles, hash verification, approved dependency lists, and internal package registries to reduce exposure to supply-chain attacks.

0
ProgrammingDEV Community ·

Developer Uses Shell Script Hook to Permanently Block Recurring Claude Code Error

A freelance developer found that verbally correcting the same Claude Code mistake more than five times had no lasting effect, due to the AI's session-independent architecture where prior context is lost on restart. The recurring error involved Claude using '&&' instead of '&' in shell handoff commands, causing blocking processes to freeze entire sessions. To fix this, the developer implemented a 46-line Stop hook — a shell script that runs before Claude returns a response and blocks any output containing the problematic '&&' pattern. Unlike text-based instructions, the script persists across all sessions and makes the mistake structurally impossible to repeat. The developer concluded that when repeated verbal corrections fail, the solution is environmental design — encoding constraints as code rather than relying on context-dependent instructions.

0
ProgrammingDEV Community ·

Guide Shows How to Ship AI-Generated Code as Stacked Pull Requests for Easier Review

A new developer tutorial addresses a common problem with AI coding agents: they generate large, hard-to-review pull requests with hundreds of changed files. The guide pairs two tools — Spec Kit, which gives AI agents structured specs and task lists, and gh stack, which breaks output into multiple smaller pull requests capped at 100 files each. Using a real e-commerce payments feature as an example, the walkthrough covers the full lifecycle from project setup to merging a three-PR stack covering domain logic, API, and webhooks. A key element is a shell script gate that blocks the agent from pushing code unless unit tests pass and the file cap is respected. The tutorial targets developers using AI coding agents like Claude, Copilot, or Gemini who want more manageable, reviewable code output.

0
IndiaTimes of India ·

Triptii Dimri Appears in IShowSpeed Livestream at Apple Launch Event in California

Bollywood actress Triptii Dimri drew social media attention after she was spotted in a livestream by popular content creator IShowSpeed. She attended Apple's recent product launch event in California, where she was seen interacting with new devices. Dimri was also photographed alongside singer AP Dhillon and Apple CEO John Ternus at the event. The actress is currently preparing for her upcoming film 'Spirit' and is also expected to appear in 'Animal Park'.

0
IndiaTimes of India ·

Elon Musk's daughter Vivian Wilson stars in fashion campaign critiquing AI

Vivian Wilson, estranged daughter of billionaire Elon Musk, has fronted a new fashion campaign that takes a critical stance on artificial intelligence. The advertisement uses humor to underscore the inability of robots to grasp human emotions and imperfections. The campaign carries added weight given Wilson's well-publicized strained relationship with her father, a prominent AI advocate. She uses the platform to raise concerns about AI's negative impact on creative jobs and the environment. The initiative ultimately champions human authenticity while scrutinizing the growing influence of AI across industries.

0
ProgrammingDEV Community ·

MCMC vs Variational Inference: Two Paths to Approximate Bayesian Posteriors

In complex probabilistic models, computing the exact posterior distribution over hidden variables is often analytically intractable due to high-dimensional latent spaces and intricate variable interactions. Approximate inference offers two principal solutions: Markov Chain Monte Carlo (MCMC) and Variational Inference (VI). MCMC constructs a Markov chain whose stationary distribution matches the target posterior, then uses collected samples to estimate posterior quantities empirically. Variational Inference instead reframes the problem as optimization, searching within a tractable family of distributions for the one closest to the true posterior. While MCMC is flexible, it can be computationally costly and slow to converge, whereas VI trades some accuracy for greater scalability through optimization.

0
ProgrammingDEV Community ·

FlatBB 0.1.70 makes community points a core feature, retires old plugin

FlatBB version 0.1.70, released on September 9, 2026, integrates a community points system directly into the platform's core rather than leaving it as an optional plugin. Administrators can configure a single table defining how many points each action — such as posting a topic, replying, or giving and receiving likes — earns per member per day. A dedicated /points page lets users view their monthly earnings, spending history, and a link back to relevant posts, while leaderboard functionality has been moved to a new standalone Leaderboard plugin. The previous Points & Leaderboard plugin is retired, and existing users must update it to version 3.0.0, disable it, then install the new Leaderboard plugin. Starting from version 0.1.69, FlatBB is licensed under GNU AGPL-3.0-or-later, with prior releases remaining under MIT and a commercial licence available for organisations unable to accept AGPL terms.

← NewerPage 983 of 4920Older →