New deployment

How to Deploy Your Vite/React App to /live9/

Follow these steps to build and upload your app so that all URLs resolve under /live9/ on your server.

1. Update vite.config.ts

Set the base option to '/live9/' so asset URLs are prefixed correctly:

import path from 'path';
import { defineConfig, loadEnv } from 'vite';

export default defineConfig(({ mode }) => {
  const env = loadEnv(mode, '.', '');

  return {
    base: '/live9/',                // ← here
    define: {
      'process.env.API_KEY': JSON.stringify(env.GEMINI_API_KEY),
      'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY)
    },
    resolve: {
      alias: {
        '@': path.resolve(__dirname, '.'),
      }
    }
  };
});

2. Check Your package.json

No changes are required here for the deploy path—just ensure your dependencies and devDependencies are correct. A typical React 18 setup looks like:

{
  "name": "live-transcribe-ai",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview"
  },
  "dependencies": {
    "react": "^18.2.0",
    "react-dom": "^18.2.0"
  },
  "devDependencies": {
    "@vitejs/plugin-react": "^4.0.0",
    "@types/node": "^22.14.0",
    "typescript": "~5.7.2",
    "vite": "^6.2.0"
  }
}

3. Install & Build

  1. cd C:\Coding\live9
  2. npm install – installs dependencies (including Vite).
  3. npm run build – generates your dist/ folder, with all URLs prefixed by /live9/.

4. Upload to Your Server

Move the contents of your dist/ into the server folder live/live9:

  1. File Manager:
    • Navigate to live/live9 (create it if missing).
    • Delete old files.
    • Upload everything from your local dist/.
  2. FTP/SFTP:
    # on your local machine
    cd dist
    # in your FTP/SFTP session
    cd /path/to/live/live9
    rm -rf *
    put *

5. Configure .htaccess for SPA Fallback

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /live9/

  # Serve real files or directories directly
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]

  # Otherwise, redirect all to index.html
  RewriteRule . index.html [L]
</IfModule>

6. Final Smoke Test

  1. Visit https://yourdomain.com/live9/ → your app’s homepage should load.
  2. Visit https://yourdomain.com/live9/any-route → React router should handle it (no 404).

That’s it! Your Vite/React SPA is now live under /live9/.

Deploying a web transcription app

1. Update package.json

{
  "name": "yourdirectory-transcribe-ai",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview"
  },
  "dependencies": {
    "react": "^18.2.0",
    "react-dom": "^18.2.0"
  },
  "devDependencies": {
    "@vitejs/plugin-react": "^4.0.0",
    "@types/node": "^22.14.0",
    "typescript": "~5.7.2",
    "vite": "^6.2.0"
  }
}

2. Install Dependencies

cd C:\Coding\yourdirectory
npm install

3. Create / Update vite.config.ts

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
  base: '/yourdirectory/',
  plugins: [react()],
})

4. Verify in Development

npm run dev

Open http://localhost:5173 in your browser. Your app should load and hot-reload.

5. Build for Production

npm run build

You’ll get a dist/ folder:

dist/
├── index.html
└── assets/

6. Upload to Your Server under /yourdirectory

Your server’s web root is live/. Inside it, create/open the yourdirectory folder:

live/
└── yourdirectory/
    ├── index.html
    └── assets/

A. Using File Manager

  1. Log in → File Manager → navigate to live/yourdirectory (create it if needed).
  2. Delete any old files in live/yourdirectory.
  3. Upload all files from your local dist/ into live/yourdirectory.

B. Using FTP/SFTP

  1. Connect and cd live/yourdirectory.
  2. Remove or overwrite existing contents.
  3. Upload the contents of your local dist/ folder there.

7. Add SPA Fallback with .htaccess

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /yourdirectory/

  # If request matches a real file/dir, serve it
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]

  # Otherwise, serve index.html
  RewriteRule . index.html [L]
</IfModule>

8. Final Smoke Test

  1. Visit https://yourdomain.com/yourdirectory/ → your app’s homepage should appear.
  2. Visit https://yourdomain.com/yourdirectory/any-route → it should still load your React app (no 404).

AI Roundup: Top Apps & Updates for May 2025

Here’s a concise roundup of the standout AI tools, apps, and industry news from this week, May 2025.

🧠 OpenAI ChatGPT Model Guide

  • GPT-4.0: Fast and reliable for everyday tasks, web search, creative content, summarizing, and image generation.
  • GPT-4.5: (Being phased out) Great for emotional intelligence and collaborative writing.
  • GPT-4 Mini & Mini High: Quick STEM queries, programming, and visual reasoning. Mini High is more accurate for advanced coding/math.
  • GPT-3.5/03: Handles complex, multi-step tasks and detailed analysis.

🎭 HeyGen Avatar 4

  • Create ultra-realistic AI avatars from a single photo and voice clip.
  • Advanced lip-sync, facial expressions, and support for singing and non-human characters.
  • Perfect for content creators needing fast, high-quality talking head videos.

🎨 Higgsfield AI Effects Mix

  • Blend multiple effects (like metal, fire, melting) onto images or videos.
  • Ideal for creative animation and social media content.

📝 Nvidia Parakeet Transcription Model

  • Open-source, lightning-fast speech-to-text. Transcribes 60 minutes of audio in about 1 second with impressive accuracy.
  • Great for podcasts, meetings, and anyone needing free, fast transcription.

📺 Netflix AI-Powered Discovery

  • Conversational AI search lets you find shows by mood (e.g., “funny and upbeat”).
  • New vertical video feed for quick, TikTok-style previews of content.

🚀 Industry Highlights

  • Google Gemini 2.5 Pro: Improved coding and image editing APIs.
  • Anthropic Web Search API: Integrate web search into your AI apps.
  • OpenAI & GitHub: Closer integration for coding assistance.
  • OpenAI acquires Windsurf: Expanding enterprise AI features.
  • Apple & Anthropic: Collaborating on an AI-powered coding platform.
  • Mistral AI: New model claims top performance for its price.
  • Amazon Vulcan Robot: New warehouse robot with tactile feedback.

Interactive Graphs in WP

The Solar System

Solar System Controls

1.0x
0.30x
4.0x
0x

A reincarnation of Atari River Raid

River Raid HTML Recreation

Score: 0
Lives:
LOADING...

Google AI Studio

Google AI Studio is a browser-based Integrated Development Environment (IDE) that allows users to experiment with and prototype generative AI models. It’s designed to help developers quickly create AI-powered applications by allowing them to:

  • Try out models: Experiment with different models and prompts
  • Fine-tune models: Customize models to a specific purpose
  • Export to code: Export the results to code in a preferred programming language
  • Share prompts: Save and share prompts via Google Drive
  • Customize safety settings: Block categories of sensitive content or relax restrictions for testing

Google AI Studio supports a range of Gemini models, including Gemini 1.0 Pro, Gemini 1.5 Pro, Gemini 1.5 Flash, and Gemma 2.