SShortSingh.
Back to feed

Developer Tries Running PostgreSQL on Android Phone via Termux and Smart IDE

0
·10 views

A developer set out to practice with a real database using only an Android phone. Using the Google Play version of Termux, the PostgreSQL client reported version 18.2, but initializing a database cluster failed with a permission denied error. The developer later managed to work with PostgreSQL 18.2 in Smart IDE, creating a database and confirming the connection with a query. The author noted they could not determine the exact cause of the Termux failure or whether another distribution would have worked. The post stresses that verifying initialization, server access, and query execution is needed beyond simply installing software.

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 ·

Most AI Coding Agent Steps Don't Need a Frontier Model, Routing Could Cut Costs

Coding agents spend most of their time reading files, searching code, and summarizing output rather than writing code, yet many use the same expensive model for every step. Research cited in the article found agentic coding consumes over 1,000 times more tokens than a single-turn question, with heavy input-to-output ratios. The author points to OpenAI's pricing, where the flagship model costs 80 times more than the smallest on both input and output. Prior work from Stanford's FrugalGPT and LMSYS/UC Berkeley's RouteLLM showed that routing requests to cheaper models can cut costs substantially while retaining most of the quality. The author proposes assigning cheaper models to lightweight agent roles and escalating to larger models only when needed, while cautioning that routing involves some quality tradeoffs.

0
ProgrammingDEV Community ·

How to crop one headshot that works as both a square profile photo and a round avatar

A square crop can look fine in an editor yet lose details like glasses corners once it is shown in a circular avatar, because the circle hides everything outside its inscribed boundary. The guide explains how to make one square JPEG in GIMP by cropping a portrait you have permission to use, keeping space above the hair and around the shoulders, and framing the eyes near the upper portion of the square. It then shows how to overlay an ellipse selection to check that the hair, ears, glasses and jaw stay inside the circular boundary, and how to scale the result to 512 pixels and export it at quality 90 with metadata removed. Finally, it suggests building a small local HTML proof to view the exported image at two sizes on light and dark backgrounds before uploading.

0
ProgrammingDEV Community ·

Gamepad API checklist for adding controller support to HTML5 browser games

Browser games increasingly need to work with controllers, since players use laptops, TV browsers and handheld PCs with pads already paired. The Gamepad API requires a button press or stick movement before a page sees a pad, so developers should listen for connection events, poll navigator.getGamepads() each frame, and show a prompt on the title screen. Serving the game over HTTPS matters because browsers restrict the API to secure contexts, and button indices should only be trusted when a pad reports the standard mapping. The guide also recommends applying a radial deadzone to sticks, making every menu keyboard-free with consistent focus, and pausing gameplay when a controller disconnects.

0
ProgrammingDEV Community ·

Open-Source Skill Gives AI Coding Agents 348 Historical Color Palettes from a 1933 Japanese Book

Developers noticed that AI coding agents tend to produce near-identical landing pages, usually dark indigo backgrounds with purple-to-blue gradients, and often pick colors that fail text contrast standards. To address this, a developer packaged all 348 color combinations from Sanzo Wada's 1933–34 book, A Dictionary of Color Combinations, into an MIT-licensed skill for Claude Code, Cursor, and Codex. Instead of loading the large palette file into the model's context, the skill provides a Python command-line search tool that filters palettes by mood, use case, and accessibility, with precomputed WCAG contrast ratios. The guidelines also direct agents to follow a 60/30/10 color balance and to use only the exact palette hex values in their CSS. The project requires only Python 3 and is available on GitHub.