Skip to content

Instantly share code, notes, and snippets.

View chunhualiao's full-sized avatar
🎯
Focusing

Chunhua Liao chunhualiao

🎯
Focusing
View GitHub Profile
@chunhualiao
chunhualiao / OpenEvolve-2Sum.md
Last active August 21, 2025 00:19
Evolving Two Sum: From O(n²) to O(n) with OpenEvolve

I spent today experimenting with OpenEvolve (the open-source counterpart to DeepMind’s AlphaEvolve) on a RHEL 9 laptop using the OpenAI API. To get it running, I fixed a small hashing issue—swapping hashlib.md5 for hashlib.sha256 due to Red Hat constraints—and added support for gpt-5, modeling it after the other o-series entries.

For a test task, I used the classic Two Sum Python problem (scan a list and find two numbers that add up to a target). With the default settings, OpenEvolve failed to reach the optimal solution and declared the O(n²) brute-force approach as the best.

Digging into the logs (and checking with AI) revealed that evaluator.py sets the optimization objective. The defaults overweight correctness and rely on overly simple tests. I expanded the test suite with edge cases and larger inputs, and rebalanced the objective to 50/50 for correctness and efficiency (instead of 70/30). Last but not least, I enabled full rewrite (not the default diff-based ev

@chunhualiao
chunhualiao / ai-ecosystem.md
Created August 10, 2025 15:12
AI ecosystem

Here are five SF ecosystems that play a role similar to Cerebral Valley—active communities that run product-focused events, recruiting, and partner with major players: 1. South Park Commons (SoMa / South Park) A tight-knit builder community + “Founder Fellowship” that invests at the -1→0 stage and hosts frequent AI-centric demos/hackathons. Apply or track their public events.    2. Founders, Inc. (Fort Mason campus) A 42,000-sq-ft founder campus that runs recurring AI hackathons and demo days, and writes first checks. Follow their Luma calendar and program pages.   3. HF0 (Hacker Fellowship Zero) — Residency (Alamo Square / SF) Highly selective live-in residency for repeat founders; offers meaningful upfront funding and deep mentor access; widely covered for its intense builder culture.    4. AGI House (SF & Hillsborough) AI-focused hacker houses and community with referral-based SF outpost; supported/visited by notable industry figures and cloud partners; frequent AI events.   5. SHACK15 (

I don't have information about ChatGPT O3-Pro, as this appears to be a model that was released after my knowledge cutoff. Let me search for current information about it.​​​​​​​​​​​​​​​​

Based on my search results, here's how to get the most out of ChatGPT O3-Pro:

Understanding O3-Pro

O3-Pro is OpenAI's most advanced reasoning model, released in June 2025. It's available exclusively to ChatGPT Pro users ($200/month) and Team users, replacing the previous o1-pro model.

Key Strategies to Maximize O3-Pro

@chunhualiao
chunhualiao / web-app-port-issue.md
Created June 24, 2025 03:23
web app port issue

This is a very common issue when deploying web applications, especially when moving from a development environment (like port 3000) to a production-like setup (like port 80). Here are the most common reasons why your son might be having trouble changing the port to 80, and how to resolve them:

Common Reasons for Port 80 Issues:

  1. Privileged Ports (Most Common Reason):

    • Explanation: On Linux/Unix-like operating systems (which most web servers run), ports below 1024 (like port 80 for HTTP and 443 for HTTPS) are considered "privileged ports." Only processes running with root (administrator) privileges can bind to these ports.
    • Why it's a problem: If your son's web application is running as a non-root user (which is good practice for security), it won't have the necessary permissions to listen on port 80 directly.
  2. Port Already In Use:

  • Explanation: Another service might already be running and listening on port 80. This could be another web server (like Nginx o

Thanks! I’ll look into the best publicly accessible AI models (including both free and paid/public APIs) that currently perform best in medical diagnostics and question answering, especially for text and multi-modal inputs like images or charts.

I’ll compare their accuracy, strengths, limitations, access models, and pricing where applicable. I’ll get back to you shortly with a breakdown of which models lead in each area.

State-of-the-Art AI Models for Medical Diagnostics and Q&A

Overview

Advances in large language models (LLMs) have led to AI systems that can answer medical questions and even assist in diagnostic reasoning. Recent models achieve exam-level performance on medical licensing questions, a dramatic leap from just a few years ago (Comparing ChatGPT and GPT-4 performance in USMLE soft skill assessments | Scientific Reports). Both general-purpose

Great. I’ll put together a deeply technical report on the latest AI-based techniques for automating research proposal writing and reviewing—focusing mainly on STEM fields, but also touching on others where relevant. I’ll include both commercial and academic tools, explore challenges and solutions, and highlight promising research directions aimed at fully autonomous proposal generation. I’ll also provide links to GitHub repositories and demos where available.

I’ll let you know as soon as the report is ready for your review.

AI-Powered Automation of Research Proposal Writing and Review in STEM

Introduction

Writing a competitive research proposal is a critical yet time-consuming task for scientists. In STEM fields (and increasingly in others), researchers are turning to AI-based tools to streamline everything from brainstorming ideas to polishing final drafts. Recent advances in large language models (LLMs) like GPT-4 have sparked a proliferation of systems that can generate text, search litera

Okay, let's break down why a California Homeowners Association (HOA) has both CC&Rs and Bylaws. They serve distinct but complementary purposes, both crucial for the functioning of the community and the association itself.

Think of it like this:

  1. CC&Rs (Covenants, Conditions, and Restrictions): The "Constitution" for the Property.
  2. Bylaws: The "Operating Manual" for the HOA Corporation.

Here's a more detailed explanation:

CC&Rs (Covenants, Conditions, and Restrictions)

Key Points

  • Research suggests the most popular leaderboards for ranking AI agent systems are the Galileo AI Agent Leaderboard and the Berkeley Function-Calling Leaderboard (BFCL), both updated in early 2025.
  • These leaderboards focus on real-world tasks and function-calling accuracy, respectively, and are hosted on trusted platforms like Hugging Face.
  • It seems likely that community engagement and academic backing make them widely used, though exact popularity metrics are hard to gauge.

Overview

AI agent systems, which can act autonomously in tasks like gaming or business automation, are ranked on several leaderboards. These rankings help developers and businesses choose the best models for their needs. The evidence leans toward two main leaderboards being popular: the Galileo AI Agent Leaderboard and the Berkeley Function-Calling Leaderboard (BFCL). Both are recent, with updates in 2025, and focus on different aspects of agent performance.

Details on Popular Leaderboards

  • **Galileo AI Agent

Double-Entry Bookkeeping

Double-entry bookkeeping is an accounting system where every financial transaction is recorded in at least two different accounts. For each transaction, there must be:

  • A debit entry in one account
  • A credit entry in another account
  • The total debits must equal the total credits

For example, when a business purchases equipment for $5,000 in cash:

  • Equipment account is debited $5,000 (asset increase)