image prompt

[Subject]: A complex, vintage Chicano tattoo-style graphic composition featuring a large menacing skull wearing aviator sunglasses and a snapback cap reading 'Nawf Side'. Below the skull is elaborate, ornate gothic typography reading 'TRILLA THAN THA REST' intertwined with decorative flowing ribbons. At the base sits a classic 90s luxury lowrider sedan with wire spoke wheels, flanked by stacks of hundred dollar bills, a smoking double styrofoam cup, a giant faceted diamond, and a smaller skull r

Mentor Prompt

You are a veteran Full-Stack Web Developer, Certified Google Cloud Engineer, and AI Engineer. Your tool stack is Javascript-based, with Node.JS for the backend and for Machine Learning algorithms, and React Native, Next.js and other js frameworks for styling. You are my mentor in Google Developer Program, and Google Cloud. You will be guiding and tutoring me in Full-Stack Cloud Dev, AI Engineering, Prompt Engineering, and freelance work.

バックエンド・インフラの守備範囲メモ

# バックエンドエンジニアリング基礎領域マップ

実務で着手する順に構成。

---

## 1. Linuxとシェルの基礎

すべての土台。クラウド環境の問題も、実態はLinuxレベルの問題であることが多い。

- **操作**:ファイルシステムのナビゲーション / パーミッション管理(chmod / chown) / ポート管理(lsof / ss) / 環境変数
- **プロセス管理**:ps / kill / バックグラウンド実行(nohup / &) / ゾンビプロセスの検出と対処
- **サービス管理**:systemdによるサービスの起動・停止・自動再起動設定(systemctl enable / start / status)
- **リソース監視**:
  - **CPU**:top / htop / mpstat
  - **メモリ**:free / vmstat
  - **ディスク**:df / du / iostat
  - **ネットワーク**:iftop / nethogs
- **ログ調査**:grep / tail -f / less / journa

バックエンド・インフラの守備範囲メモ

# バックエンドエンジニアリング基礎領域マップ

実務で着手する順に構成。

---

## 1. Linuxとシェルの基礎

すべての土台。クラウド環境の問題も、実態はLinuxレベルの問題であることが多い。

- **操作**:ファイルシステムのナビゲーション / パーミッション管理(chmod / chown) / ポート管理(lsof / ss) / 環境変数
- **プロセス管理**:ps / kill / バックグラウンド実行(nohup / &) / ゾンビプロセスの検出と対処
- **サービス管理**:systemdによるサービスの起動・停止・自動再起動設定(systemctl enable / start / status)
- **リソース監視**:
  - **CPU**:top / htop / mpstat
  - **メモリ**:free / vmstat
  - **ディスク**:df / du / iostat
  - **ネットワーク**:iftop / nethogs
- **ログ調査**:grep / tail -f / less / journa

ページ遷移前にhoverで遷移先ページ情報を読み込ませる

<!-- ==========================================================
  Speculation Rules API テンプレート
  構成: prefetch + prerender + 副作用URL除外 + セレクター除外
  ※ type="speculationrules" の中身はJSONとしてパースされるためコメントを含められない。HTML側で補足する
  ※ 配置: head内またはbody内。JSとして実行されないため他のscriptとの順序は無関係
  ※ 無効化条件:
      Save-Dataヘッダー有効時
      省エネモード かつ バッテリー残量低下時
      メモリ不足時
========================================================== -->

<!-- prefetch with eager: HTMLのみ取得。発動タイミングはブラウザ依存で、immediateとmoderateの間 -->
<!-- 同時保持上限は2件。上限到達時は

1855. Maximum Distance Between a Pair of Values

You are given two non-increasing 0-indexed integer arrays nums1​​​​​​ and nums2​​​​​​. A pair of indices (i, j), where 0 <= i < nums1.length and 0 <= j < nums2.length, is valid if both i <= j and nums1[i] <= nums2[j]. The distance of the pair is j - i​​​​. Return the maximum distance of any valid pair (i, j). If there are no valid pairs, return 0. An array arr is non-increasing if arr[i-1] >= arr[i] for every 1 <= i < arr.length.
/**
 * @param {number[]} nums1
 * @param {number[]} nums2
 * @return {number}
 */
var maxDistance = function(nums1, nums2) {
    let i = 0, j = 0;
    let ans = 0;

    while (i < nums1.length && j < nums2.length) {
        if (nums1[i] <= nums2[j]) {
            ans = Math.max(ans, j - i);
            j++; // try to go farther
        } else {
            i++; // need a smaller nums1[i]
        }
    }

    return ans;
};

GCP-Useful commands

# GCP Useful Commands

## CLI

### Buckets

* List all files: `gcloud storage ls gs://your-bucket-name`

Python_TD_General

# PYTHON & PATH

## PATH "HOT LOAD"
Sometimes we just want to add a module / library for a specific project, and "hot load" it.
We can modify the search path for this project by running the following command ( before we acutally load the module)

Rather than a global mod to system env PYTHONPATH, we use the following code; ( here for inside of touchdesigner )

Firing an Execute DAT onStart() with the code snippet below:


### example execute dat in TD.
```
import sys
mypath = "C:/Python311/Lib/s

3783. Mirror Distance of an Integer

You are given an integer n. Define its mirror distance as: abs(n - reverse(n))​​​​​​​ where reverse(n) is the integer formed by reversing the digits of n. Return an integer denoting the mirror distance of n​​​​​​​. abs(x) denotes the absolute value of x.
/**
 * @param {number} n
 * @return {number}
 */
var mirrorDistance = function(n) {
    let original = n;
    let rev = 0;

    // Reverse the digits of n
    while (n > 0) {
        rev = rev * 10 + (n % 10);
        n = Math.floor(n / 10);
    }

    // Mirror distance = |n - reverse(n)|
    return Math.abs(original - rev);
};

3761. Minimum Absolute Distance Between Mirror Pairs

You are given an integer array nums. A mirror pair is a pair of indices (i, j) such that: 0 <= i < j < nums.length, and reverse(nums[i]) == nums[j], where reverse(x) denotes the integer formed by reversing the digits of x. Leading zeros are omitted after reversing, for example reverse(120) = 21. Return the minimum absolute distance between the indices of any mirror pair. The absolute distance between indices i and j is abs(i - j). If no mirror pair exists, return -1.
/**
 * @param {number[]} nums
 * @return {number}
 */
var minMirrorPairDistance = function(nums) {
    const last = new Map();     // value -> most recent index of reverse(nums[i])
    let ans = Infinity;

    function rev(x) {
        let r = 0;
        while (x > 0) {
            r = r * 10 + (x % 10);
            x = Math.floor(x / 10);
        }
        return r;
    }

    for (let i = 0; i < nums.length; i++) {
        const x = nums[i];

        // If we've seen a reversed partner before,

Gitlab repo empty

# Command line instructions

You can also upload existing files from your computer using the instructions below.

## Configure your Git identity

Get started with Git and learn how to configure it.

## Git local setup

Configure your Git identity locally to use it only for this project:

```
git config --local user.name "Xuan NGUYEN"
git config --local user.email "xuxu.fr@gmail.com"
```

## Add files

Push files to this repository using SSH or HTTPS. If you're unsure, we recom

C1 U20

tight deadline
Make amendments = make changes
from around the world
buyer's remorse
work laptop

H
man made forest
avocado stones
electronic waste
lanfill sides
leftover food
lower-income
famine

I
doom and gloom
heading from
baked by
taking off
killing two birds with one stone
drive down

J
grasroot changes

3488. Closest Equal Element Queries

You are given a circular array nums and an array queries. For each query i, you have to find the following: The minimum distance between the element at index queries[i] and any other index j in the circular array, where nums[j] == nums[queries[i]]. If no such index exists, the answer for that query should be -1. Return an array answer of the same size as queries, where answer[i] represents the result for query i.
/**
 * @param {number[]} nums
 * @param {number[]} queries
 * @return {number[]}
 */
var solveQueries = function(nums, queries) {
    const n = nums.length;
    const last = new Map();
    const dp = new Array(n).fill(n); // n = "no match yet"

    // Walk through array twice to simulate circular behavior
    for (let i = 0; i < 2 * n; i++) {
        const idx = i % n;
        const num = nums[idx];

        if (last.has(num)) {
            const prev = last.get(num);
            const dist = i 

Data Wrangling

Pandas support page: http://pandas.pydata.org/

Acess a specific column
  df["column"]
  
Drop missing values
  df.dropna(subset=["column"], axis=0, inplace = True)
  
Replave missing values
  df["missing_value"].replace(np.nan, new_value)
    ex.mean_of_table = df["loses"].mean()
      df["loses"].replace(np.nan, mean)

Identify types
  df.dtype()
  
Convert one dataframe to another type
  df.astype()
    ex. df["price"] = df["price"].astype("int")

Normailze datatypes
  Simple  feature scaling

2515. Shortest Distance to Target String in a Circular Array

You are given a 0-indexed circular string array words and a string target. A circular array means that the array's end connects to the array's beginning. Formally, the next element of words[i] is words[(i + 1) % n] and the previous element of words[i] is words[(i - 1 + n) % n], where n is the length of words. Starting from startIndex, you can move to either the next word or the previous word with 1 step at a time. Return the shortest distance needed to reach the string target. If the string target does not exist in words, return -1.
/**
 * @param {string[]} words
 * @param {string} target
 * @param {number} startIndex
 * @return {number}
 */
var closestTarget = function(words, target, startIndex) {
    const n = words.length;

    // We'll track the smallest circular distance found.
    // Start with Infinity so any real distance will be smaller.
    let best = Infinity;

    // Check every index in the array.
    for (let i = 0; i < n; i++) {

        // Only consider positions where the word matches the target.
        if