1582. Special Positions in a Binary Matrix

Given an m x n binary matrix mat, return the number of special positions in mat. A position (i, j) is called special if mat[i][j] == 1 and all other elements in row i and column j are 0 (rows and columns are 0-indexed).
/**
 * @param {number[][]} mat
 * @return {number}
 */
var numSpecial = function(mat) {
    const m = mat.length;
    const n = mat[0].length;

    // Count how many 1s appear in each row
    const rowCount = new Array(m).fill(0);
    // Count how many 1s appear in each column
    const colCount = new Array(n).fill(0);

    // First pass: fill rowCount and colCount
    for (let i = 0; i < m; i++) {
        for (let j = 0; j < n; j++) {
            if (mat[i][j] === 1) {
                rowCount[

🐧 Bash - Strict Mode

# Le mode strict en Bash — `set -euo pipefail`

## Principe général

Le mode strict transforme le comportement par défaut de bash : au lieu de continuer silencieusement en cas de problème, le script **échoue tôt et fort**. Cela évite les exécutions partielles silencieuses, source de bugs difficiles à diagnostiquer.

```bash
set -euo pipefail
```

---

## Les trois options

### `-e` — Arrêt sur erreur

Sans `-e`, si une commande échoue (code de retour non-zéro), bash continue quand même.

```bash

LaserDistanceSensorSetup

#include <Wire.h>
#include <Adafruit_VL53L0X.h>

#define SDA_PIN 42
#define SCL_PIN 41
#define VL53_INT_PIN 39  // GPIO за interrupt
#define VL53_XSHUT_PIN 40 // GPIO за XSHUT

Adafruit_VL53L0X lox = Adafruit_VL53L0X();
volatile bool newMeasurement = false;

void IRAM_ATTR measureReady() {
  newMeasurement = true;
}

void setup() {
  Serial.begin(115200);
  delay(100);
  Serial.println("VL53L0X + XSHUT + Interrupt demo");

  // XSHUT HIGH за включване на сензора
  pinMode(VL53_XSHUT_PIN, OUTPUT)

Grid as HTML table

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>

	
	<html>
    <body>
        <div class="gridTable">
            <div> <!-- Header -->
                <div>Timeclock.Kiwi</div>
                <div>Payroll</div>
                <div>Checked</div>
            </div>
            
            <div> <!-- Body -->
                <div>
                    <div>Cat</div>
         

errors

when have this error : Auth failed. Re-copy a tokenized URL with openclaw dashboard --no-open, or update the token, then click Connect.
1. get token cat ~/.openclaw/openclaw.json | grep "token"
2. copy the token in overview -> gateway Access -> Gateway token 
if doesn't work use : 
1. openclaw dashboard --no-open
2. access the like provided

Check if there are hidden admins in the db

This shows all users with administrator role including registration date. Any unfamiliar entries are suspicious. Run this in phpMyAdmin and **change 3 instances of wpkagf with corresponding db prefix**
SELECT u.ID, u.user_login, u.user_email, u.user_registered, m.meta_value AS capabilities
FROM wpkagf_users u
JOIN wpkagf_usermeta m ON u.ID = m.user_id
WHERE m.meta_key = 'wpkagf_capabilities'
AND m.meta_value LIKE '%administrator%'
ORDER BY u.user_registered;

Suspenseの使い所

# Next.js App Router: Suspense と Server Components

## Suspense で Server Component を wrap する目的

Server Component が非同期処理(データフェッチ等)を含む場合、その完了までページ全体のレンダリングがブロックされる。Suspense 境界で囲むことで、該当コンポーネントの処理完了を待つ間 `fallback` を表示しつつ、ページの残りを先行してクライアントへストリーミングできる。

```tsx
import { Suspense } from 'react';

export default function Page() {
  return (
    <div>
      <h1>Dashboard</h1> {/* 即時レンダリング */}
      <Suspense fallback={<Skeleton />}>
        <SlowDataComponent /> {/* データ取得完了後にレンダリング */}
      </Suspense>
 

タイトルタグをプラグインで出力させる

// ==============================================
// タイトルタグのテーマサポートON
// ==============================================
add_action('after_setup_theme', function () {
	add_theme_support('title-tag');
});

ボーダー ドットカスタマイズ

.hoge {
	--borderHeight: 1px; //ドット高さ
	--dotSize: 3px; //ドットサイズ
	--spaceSize: 2px; //ドット間の間隔サイズ
	--dotColor: #000; //ドットカラー
	position: relative;
	padding-bottom:10px;

  &::after {
  	content: "";
  	position: absolute;
  	bottom: 0;
  	left: 0;
  	width: 100%;
  	height: var(--borderHeight);
  	background-image: linear-gradient(to right, var(--dotColor) var(--dotSize), transparent var(--dotSize), transparent var(--spaceSize));
  	background-repeat: repeat-x;
  	background-position: left bottom;

Telegram:@lazarustoolz Bank Transfer Drop Wire Logs


(transferring all over the world except banned/blacklisted countries)
Paypal Transfer Rates :
Code:
(Payment Only BTC or PM)
$3000 Transfer = $250 Charges
 
$3500 Transfer = $230
 
$4500 Transfer = $400
 
$6000 Transfer = $500
 
$8000 Transfer = $550
 
 
I  have some balance like as and I can still remit more  high balance into PayPal acct.
 
BUY BLANK/CLONED ATM/Credit CARD WITH OVER $100,000 READY FOR CASH OUT
We are a professional carding team with a large ring around the globe. With over 2 

Resume

Susant Kumar Sahoo
Data Scientist | AI/ML | NLP | Generative AI | MLOps 
Phone No: +91 8917499565
Email: sahoosusa9999@gmail.com
LinkedIn: https://linkedin.com/in/susantkumarsahoo 
GitHub: https://github.com/susantkumarsahoo

Professional Summary
Data Scientist with 4+ years of experience in Machine Learning, Deep Learning, and Generative AI. Expertise in classification, regression, clustering, Natural Language Processing (NLP), Transfer Learning, Large Language Models (LLMs), and MLOps.

Interview Prompt

Subject: Seeking New Job Opportunity – Data Scientist

Hi Hiring Team,

I am exploring new job opportunities and would like to share my background with you.

I am a Data Scientist with over 4+ years of experience in Machine Learning, Deep Learning, and Generative AI. My expertise includes classification, regression, clustering, Natural Language Processing (NLP), Transfer Learning, Large Language Models (LLMs), and MLOps. I have a proven track record of applying data-driven decision-making 

1536. Minimum Swaps to Arrange a Binary Grid

Given an n x n binary grid, in one step you can choose two adjacent rows of the grid and swap them. A grid is said to be valid if all the cells above the main diagonal are zeros. Return the minimum number of steps needed to make the grid valid, or -1 if the grid cannot be valid. The main diagonal of a grid is the diagonal that starts at cell (1, 1) and ends at cell (n, n).
/**
 * @param {number[][]} grid
 * @return {number}
 */
var minSwaps = function(grid) {
    const n = grid.length;

    // Step 1: For each row, compute the index of the rightmost 1.
    // If a row has no 1s, store -1.
    const rightmost = new Array(n).fill(0);

    for (let i = 0; i < n; i++) {
        let last = -1;
        for (let j = 0; j < n; j++) {
            if (grid[i][j] === 1) last = j;
        }
        rightmost[i] = last;
    }

    // Step 2: Greedily place rows from top to bot

cloudinary_config

//dependency:
		<dependency>
			<groupId>com.cloudinary</groupId>
			<artifactId>cloudinary-http44</artifactId>
			<version>1.32.2</version>
		</dependency>
		
//entity:
@Column(name = "image", nullable = true)
private String imageUrl; // saves url

//service:
import org.springframework.stereotype.Service;

import com.cloudinary.Cloudinary;
import com.cloudinary.utils.ObjectUtils;
import org.springframework.beans.factory.annotation.Value;

@Service
public class CloudinaryService {
    private fi

SoilMoistureCapacitiveSensorSetup

This is the code for the setup of the "Soil Moisture Capacitive Sensor V2)
#include <Arduino.h>

#define SOIL_MOISTURE_SENSOR_PIN 4
int airValue = 2603;   // sensor in dry air
int waterValue = 1300; // sensor fully inserted in water

void setup() 
{
  Serial.begin(115200);
  delay(1000);
  Serial.println("Starting Soil Moisture Capacitive Sensor V2 initialization...");
}

void loop() 
{
  int soilMoistureRaw = analogRead(SOIL_MOISTURE_SENSOR_PIN);
  if (soilMoistureRaw > airValue + 100 || soilMoistureRaw < waterValue - 100) 
  {
    Serial.println("Soil Moisture Capaci

DHT22 Setup

This is the code for the setup of the DHT22 sensor
#include <Arduino.h>
#include <DHT.h>

#define DHTPIN 4
#define DHTTYPE DHT22

DHT dht(DHTPIN, DHTTYPE); 

void setup() 
{
  Serial.begin(115200);
  dht.begin();

  delay(1000); // time for serial monitor to connect
  Serial.println("Starting DHT22 sensor initialization...");
}

void loop() 
{
  float humidity = dht.readHumidity();
  float temperature = dht.readTemperature();

  if(isnan(temperature) || isnan(humidity))
  {
    Serial.println("DHT22 was not connected!");
    return;
  }

  Seria