Variance Threshold

import os
import json
from typing import Dict, Any
import pandas as pd
import numpy as np
from sklearn.feature_selection import VarianceThreshold

def variance_threshold_report(df_clean: pd.DataFrame, threshold: float, json_path: str):
    """
    Perform Variance Threshold feature selection and save report as JSON.
    The internal logic and steps remain exactly as the user provided.
    """

    # ----- STEP 1: Select numeric features -----
    dfnumeric = df_clean.select_dtypes(

1018. Binary Prefix Divisible By 5

You are given a binary array nums (0-indexed). We define xi as the number whose binary representation is the subarray nums[0..i] (from most-significant-bit to least-significant-bit). For example, if nums = [1,0,1], then x0 = 1, x1 = 2, and x2 = 5. Return an array of booleans answer where answer[i] is true if xi is divisible by 5.
/**
 * @param {number[]} nums
 * @return {boolean[]}
 */
var prefixesDivBy5 = function(nums) {
    // Result array to store true/false for each prefix
    let answer = [];

    // We'll keep track of the current number modulo 5
    // This avoids dealing with huge binary numbers directly
    let currentMod = 0;

    // Iterate through each bit in nums
    for (let i = 0; i < nums.length; i++) {
        // Shift left (multiply by 2) and add the new bit
        // Example: if currentMod = 2 (binar

Get-SMSAdvertisement

#region Get-SMSAdvertisement
function Get-SMSAdvertisement {
    [CmdletBinding()]
    PARAM(
        [Alias('PKG_PackageID')]
        [Parameter(Mandatory = $false, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
        [string]
        $PackageId
        ,
        [Alias('PRG_ProgramName')]
        [Parameter(Mandatory = $false, Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
        [string]
        $ProgramNam

Get-CMSoftwareDistribution


function Get-CMSoftwareDistribution {
    [CmdletBinding()]
    PARAM(
        [Alias('PKG_Name')]
        [Parameter(Mandatory = $false, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
        [string]
        $PackageName
        ,
        [Alias('PKG_PackageID')]
        [Parameter(Mandatory = $false, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
        [string]
        $PackageId
        ,
        [Alias(

DEL FILHO

inicio{
"host":"xDcfvkSd1hQO+cImKe/PSrvAGcrn",
"porta":"CbyZhQEGptRObG41",
"contador":"yiqyY5w++hcD3F71/y6kbJ8N/JeqVhpuh3vXJgiCWa2K3svUhCJVMYKwP8fKpc4QYCY=",
"spammer":"qysQeuDipKwWO7ONRg=="
}fim

MACOS技巧

# MACOS技巧
## 允许任何来源
输入命令
```
sudo spctl --master-disable
```
然后打开`系统设置` -> `隐私与安全性` -> `安全性`下的`允许以下来源的应用程序` -> `任何来源`

Modern breakpoints

$breakpoint-up: (
  xs: 0px,
  sm: 640px,
  md: 768px,
  lg: 1025px,
  xl: 1280px,
  2xl: 1536px
);

$breakpoint-down: (
  xs: 639px,
  sm: 767px,
  md: 1024px,
  lg: 1279px,
  xl: 1535px
);

@mixin breakpoint-up($size) {
  @media (min-width: map-get($breakpoint-up, $size)) {
    @content;
  }
}

@mixin breakpoint-down($size) {
  @media (max-width: map-get($breakpoint-down, $size)) {
    @content;
  }
}

@mixin breakpoint-between($lower, $upper) {
  @media (min-widt

All implicit role names supported by playwright for page.getByRole locator

https://playwright.dev/docs/api/class-page#page-get-by-role-option-role

List of Some Common HTML Elements and Their Implicit ARIA Roles

List of Some Common HTML Elements and Their Implicit ARIA Roles
Here are some HTML elements and the implicit ARIA roles they map to (per HTML-AAM spec): 

| HTML Element                        | Implicit ARIA Role                                                                           |
| ----------------------------------- | -------------------------------------------------------------------------------------------- |
| `<a href="…">`                      | `link` ([W3C][1])                  

Integration

# How to Enable or Disable Peer to Peer Connection in Viva Terminal App

## Overview

This guide will help you turn on or off the Peer to Peer connection feature in your Viva Terminal app. The Peer to Peer protocol (also known as 'Local Terminal API') allows Twine POS system to communicate with your card terminal device over the same network.

---

## Requirements

- Viva Terminal app installed on your Android device
- Access to the app's settings menu
- Both your terminal and ECR system must be

LinkedIn

1. HR & Talent Acquisition (IT-focused)
HR Manager IT

Technical Recruiter

IT Recruiter

Talent Acquisition Specialist IT

HR Business Partner Technology

People Operations IT

Campus Recruiter IT

HR Generalist IT

2. IT Domain (General)
IT Specialist

IT Consultant

IT Project Manager

IT Support Engineer

IT Infrastructure Manager

Systems Administrator

Cloud Engineer

IT Operations Lead

3. Machine Learning / Deep Learning
Machine Learning Engineer

Deep Learning Engineer

AI Research Scie

1262. Greatest Sum Divisible by Three

Given an integer array nums, return the maximum possible sum of elements of the array such that it is divisible by three.
/**
 * @param {number[]} nums
 * @return {number}
 */
var maxSumDivThree = function(nums) {
    // Step 1: Calculate the total sum of the array
    let totalSum = nums.reduce((acc, num) => acc + num, 0);

    // Step 2: If already divisible by 3, return it
    if (totalSum % 3 === 0) return totalSum;

    // Step 3: Separate numbers by their remainder when divided by 3
    let remainder1 = []; // numbers where num % 3 === 1
    let remainder2 = []; // numbers where num % 3 === 2

    for (let nu

Langgraph_Note

# LangGraph Complete Study Notes

## 1. Core Concepts

### What is LangGraph?
- **Stateful graph framework** for building complex LLM workflows
- **Cyclic graphs** - supports loops and conditional flows
- **Built on LangChain** - integrates seamlessly with LCEL
- **Persistence** - save and resume workflows at any point

### Graph Types
- **StateGraph** - Main graph with typed state (most common)
- **MessageGraph** - Specialized for chat messages
- **WorkflowGraph** - Simple workflow

Langchain_Notes

# LangChain
llms_chat_model, prompts,output_parsers, memory, chains, messages.py", rag_retrievers,
embedding, retrievers, runnables, callbacks, text_splitter, tools_toolkits, document_loader,
streaming.py", mcp_client,
        
# LangGraph

state, nodes, edges, checkpointer", persistence", workflows


# Langchain all important technique names

# LangChain Essential Techniques Reference

## 1. Prompts (Core Techniques)

### Must-Know
- **ChatPromptTemplate** - Primary template fo

prompt

# Notes

- Combine chat history and notes into a single markdown file.
- Note: Do not include unnecessary objects.
- Revise the notes file for a short, clear read.
- Correct only the prompt wording.

ovpn profile on Ubuntu

## List client

ls /etc/openvpn/easy-rsa/pki/issued/

## Delete client

su

cd /etc/openvpn/easy-rsa/

./easyrsa revoke client_to_delete

./easyrsa gen-crl

cp /etc/openvpn/easy-rsa/pki/crl.pem /etc/openvpn/

chmod 644 /etc/openvpn/crl.pem

systemctl restart openvpn

openssl crl -in /etc/openvpn/crl.pem -noout -text | grep -A1 "Revoked Certificates"

## Add client

./ubuntu-22.04-lts-vpn-server.sh

## Check certif expired 

openssl x509 -in /etc/openvpn/easy-rsa/pki/issued/server_*.crt -text -no