SShortSingh.
Back to feed

I got tired of logging in and out of Claude Code, so I built a one-command account switcher

0
·35 views

Quick confession: last week I logged out of my work Claude Code account four times in one afternoon. Nothing was broken. I just have a second account for personal projects, and Claude Code can only be logged into one of them at a time. Sign in with the personal account and the work one is gone. Sign back in with work and personal is gone.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Why Font Swaps Caused Layout Shift on Arabic Pages: A Metrics Mismatch Explained

A developer running a bilingual English and Arabic site found that the Arabic routes jumped on every cold load, moving the entire right-to-left column. The author argues that font-driven layout shift stems from a mismatch in metrics between the fallback font painted first and the webfont that replaces it, not from slow downloads, so a faster CDN would not help. Next.js's next/font automatically generates size-adjusted fallbacks for Latin text, but it derives them from Arial or Times New Roman and so does not cover Arabic, Cyrillic, or CJK scripts. The notes describe how average character width and the ascent-to-descent ratio determine how far content moves, and how font-display: optional can eliminate swap-driven shifts. The author recommends reproducing cold loads with caching disabled and throttling enabled, since a warm cache hides the problem during local testing.

0
ProgrammingDEV Community ·

Refactoring a Laravel Controller to Reuse Shared AppBaseController Response Helpers

A developer describes refactoring a Laravel MenuCategoryController that returned hand-built JSON responses instead of following the project's established conventions. The original controller extended Laravel's default Controller, which led to inconsistent response formats across the codebase. The fix was to switch the controller to extend the existing AppBaseController, which provides sendResponse, sendError, and sendSuccess helpers. The article notes that sendResponse and sendSuccess produce different JSON structures, so the underlying ResponseUtil methods should be checked before assuming output formats. The refactor preserves resource-based responses and proper HTTP status codes while keeping shared behavior in the parent class.

0
ProgrammingDEV Community ·

Five SQL Metrics for an AI Visibility Dashboard, and the Traps Behind Each

A DEV Community post explains how to build an AI visibility dashboard from daily LLM answers scored for brand mentions. It notes that the data is noisy because answers are non-deterministic, per-prompt sample sizes are small, engines vary widely, and competitor sets change. The author proposes a shared SQLite view so that all dashboard queries draw from one consistent scoring version. Five metrics are covered, including a 7-day rolling share of answers mentioning the brand and per-engine share of voice across tracked brands. Each metric comes with specific pitfalls, such as averaging daily percentages, gaps in daily data, changes to the competitor set, and average position improving while visibility falls.

0
ProgrammingDEV Community ·

Apple's $299 HomeView screen requires an iPhone or iPad to set up

Apple's new HomeView screen costs $299 in the U.S., but it cannot be configured without a compatible iPhone or iPad running the latest software. This requirement is noted in the footnotes of Apple's October 13 announcement and the product's tech specs, rather than on the main product page. The setup process also requires adding the user to a shared home in Apple's Home app, which is unavailable on Android devices. Additional accessories such as the wall mount, USB-C cable, and power adapter are sold separately.