SShortSingh.
Back to feed

Clock Time Versus Solar Time: Why a BaZi Hour Pillar Can Be Wrong

0
·30 views

Many Chinese astrology calculators take a birth date, time, and city, but ignore that clock time differs from local sun time. China uses a single time zone (UTC+8) nationwide, so cities far from the 120°E meridian, such as Chengdu and Lhasa, have sun times that are substantially offset from the clock. The article explains that the day and hour pillars depend on local solar time, and the offset can be nearly two hours in Lhasa. The year and month pillars instead depend on absolute solar-term instants and should only be converted by time zone. Mishandling these conversions mainly causes errors for births near pillar boundaries, which is where the author says such charts are most often disputed.

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 ·

How Voice Cloning Works: Core Concepts and Developer Tooling

Voice cloning has shifted from a research niche to a mainstream technology used in assistants, personalized audiobooks, and similar applications. Unlike generic text-to-speech, it reproduces a specific speaker's tone, timbre, and speaking style. The approach relies on components such as spectrogram-based audio representations, encoder-decoder models, speaker embeddings, and neural vocoders. Practical pipelines involve collecting clean recordings, preprocessing and aligning them with text, and training or fine-tuning a base model. The article also outlines quality metrics like mean opinion score and speaker similarity, and walks through generating cloned speech via a commercial API.

0
ProgrammingDEV Community ·

Recording a Google Meet call in the browser without a meeting bot

Meeting bots appear as extra participants, sit in the lobby, and can make clients guarded in conversation. A simpler option is to record your own call directly in the browser, which requires the user to select the meeting tab and enable tab audio sharing in Chrome's picker. Because the user's own voice isn't included in tab audio, the microphone is captured separately and both streams are mixed through the Web Audio API. The recording is saved in chunks every few seconds so little is lost if the tab crashes, and the code should detect when no tab audio was shared. Desktop apps such as Zoom and Teams need system loopback capture instead, and participants should be informed before recording.

0
ProgrammingDEV Community ·

SQLAlchemy Implicit Flushes Caused Silent Data Inconsistency in Settlement Batch

A nightly batch job synchronizing a settlement system with an external accounting API showed a negative database balance while the payment API logged success. The team traced the mismatch to SQLAlchemy's implicit flush behavior, which sent SQL statements to the database before business validation finished, even without explicit session.flush() calls. Because external API calls could not be rolled back by later exception handling, the partially validated data left the system in an inconsistent state. The write-up describes how the team regained control by using Pydantic for input validation and explicitly managing session lifecycle and flush timing with transaction boundaries.

0
ProgrammingDEV Community ·

Inbox Duty Agent: an unattended mail agent that treats email as data, not commands

Inbox Duty Agent was built for the Agentware 2026 Track T1 challenge as an unattended agent that triages a mailbox, manages calendar bookings, replies, files follow-ups, and writes a daily digest. Its developers say a phishing email hid an injection in invisible HTML text, which the first scan missed until hidden HTML content was also checked. Mails with suspicious authority signals are forced to draft-only, and a benign newsletter that quoted injection phrases exposed a false positive that was fixed by distinguishing what the mail asks the agent to do. The scan runs on Unicode-normalised text and the classifier uses hand-written rules without an LLM, with a dashboard, CLI, and OS-signal kill switch that was shown working in the demo. The author notes the submission form was not filed on time because they were defending their graduation thesis that day.