3379. Transformed Array

You are given an integer array nums that represents a circular array. Your task is to create a new array result of the same size, following these rules: For each index i (where 0 <= i < nums.length), perform the following independent actions: If nums[i] > 0: Start at index i and move nums[i] steps to the right in the circular array. Set result[i] to the value of the index where you land. If nums[i] < 0: Start at index i and move abs(nums[i]) steps to the left in the circular array. Set result[i] to the value of the index where you land. If nums[i] == 0: Set result[i] to nums[i]. Return the new array result. Note: Since nums is circular, moving past the last element wraps around to the beginning, and moving before the first element wraps back to the end.
/**
 * @param {number[]} nums
 * @return {number[]}
 */
var constructTransformedArray = function(nums) {
    const n = nums.length;
    const result = new Array(n);

    for (let i = 0; i < n; i++) {
        const steps = nums[i];

        // Case 1: If the value is zero, no movement happens.
        if (steps === 0) {
            result[i] = 0;
            continue;
        }

        // Case 2: Movement happens.
        // We compute the new index using modular arithmetic.
        //
        /

Restore MySQL database backup in Laragon (when upgrading MySQL)

Restore MySQL database backup in Laragon (when upgrading MySQL)
mysql -u root -p < C:\laragon\backup\mysql\xxx.sql

Add WP CLI to Laragon on Windows

Add WP CLI to Laragon on Windows
cd C:\laragon\usr\bin && curl -L -O https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && echo @ECHO OFF > wp.bat && echo php "%~dp0wp-cli.phar" %* >> wp.bat

ghostty config

theme = Spacegray

background-opacity = 0.7

font-family = "HackGen Console NF", "Menlo", "Monaco", "Courier New", "monospace"
font-thicken = true

maximize = true
fullscreen = false

keybind = super+shift+arrow_left=previous_tab
keybind = super+shift+arrow_right=next_tab

ODOO 17 TIPS AND TRICKS

#####################################################################################
RUNNING ODOO UPDATE COMMAND IN DOCKER CONTAINER AND OUTPUTTING LOG TO ANOTHER TERMINAL

# Inside container
odoo -u my_module_name -d my_database --stop-after-init > /proc/1/fd/1 2> /proc/1/fd/2

GIVES IN BOTH LOGS
odoo -u my_module_name -d my_database --stop-after-init 2>&1 | tee /proc/1/fd/1
######################################################################################

label-hidden

.visually-hidden {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute;
}

PHP PDO CRUD Class

<?php
class Database {
    private $host = "localhost";
    private $db_name = "your_database";
    private $username = "db_user";
    private $password = "db_pass";
    public $conn;

    public function connect() {
        $this->conn = null;

        try {
            $this->conn = new PDO(
                "mysql:host={$this->host};dbname={$this->db_name};charset=utf8mb4",
                $this->username,
                $this->password,
                [
                    PDO::ATTR_ERRMODE

Clear Laravel Cache

a set of commands to clear all laravel caches
# 1. Clear all Laravel caches
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear
php artisan optimize:clear

# 2. Clear storage directories
rm -rf storage/framework/sessions/*
rm -rf storage/framework/cache/*
rm -rf bootstrap/cache/*

# 3. Run fresh migrations (creates all tables)
php artisan migrate:fresh

# 4. Seed the database with initial data
php artisan db:seed

# 5. Clear caches again after seeding
php artisan cache:clear
php artisan config:cle

MySQL: CREATE USER

CREATE USER 'user'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON dbname.* TO 'user'@'localhost';
FLUSH PRIVILEGES;

Legit WU Transfer Bug MoneyGram Transfer CC Fullz PayPal Transfer CashApp Transfer Apple Pay Transfer Skrill Transfer..



_____ Jeanson Ancheta _________
               
             πŸŒŽ 


πŸ’»πŸ’Έ Fresh Logs Pricing πŸ’ΈπŸ’»
πŸ” UK/US Logs / Clean Bank Drops (GBP/$)
πŸ’° 10K GBP/$ = 250
πŸ’° 12K GBP/$ = 300
πŸ’° 16K GBP/$ = 350
πŸ’° 20K GBP/$ = 500
πŸ’° 30K GBP/$ = 800


πŸ›‘οΈ Verified β€’ HQ Access β€’ Fast Delivery
πŸ’¬ DM for escrow or direct πŸ”₯
WESTERN UNION / MONEY GRAM/BANKS LOGINS/BANK TRANFERS/PAYPAL TRANSFERS WORLDWIDE/CASHAPP/ZELLLE/APPLE PAY/SKRILL/VENMO TRANSFER
Telegram:@JeansonTooL      


Group: https://t.me/+2__ynBAtFP00M2Fk            

Fresh CC Fullz Bank Logs Paypal Transfer WU Transfer Bug MoneyGram CashApp Zelle Venmo Apple Pay Skrill Transfer ATM Cards.


________ Scattered Spiders _________
               
             🌎 

πŸ’»πŸ’Έ Fresh Logs Pricing πŸ’ΈπŸ’»
πŸ” UK/US Logs / Clean Bank Drops (GBP/$)
πŸ’° 10K GBP/$ = 250
πŸ’° 12K GBP/$ = 300
πŸ’° 16K GBP/$ = 350
πŸ’° 20K GBP/$ = 500
πŸ’° 30K GBP/$ = 800

πŸ›‘οΈ Verified β€’ HQ Access β€’ Fast Delivery
πŸ’¬ DM for escrow or direct πŸ”₯
WESTERN UNION / MONEY GRAM/BANKS LOGINS/BANK TRANFERS/PAYPAL TRANSFERS WORLDWIDE/CASHAPP/ZELLLE/APPLE PAY/SKRILL/VENMO TRANSFER
Telegram:@JeansonTooL      

Group: https://t.me/+2__ynBAtFP00M2Fk           

resume

Short and readable – no long sentences, just clear phrasing.

Key responsibilities highlighted – using strong action verbs.

Experience section quick to scan – concise bullet points that emphasize achievements.

Professional tone – polished grammar, consistent formatting, no filler words.


Ideal PROFESSIONAL EXPERIENCE Checklist (Before Finalizing)

βœ” Clear job title and dates
βœ” Quantified impact in most bullets
βœ” Tools and methods mentioned naturally
βœ” No duplicate or repeated points
βœ” Easy to

Temaplate Directives

https://blogs.ontoorsolutions.com/post/oracle-apex-css-template-directive-pattern-library/

{case STATUS/}
{when ACTIVE/}
<span class="os-badge os-badge--success">Active</span>
{when INACTIVE/}
<span class="os-badge os-badge--warning">Inactive</span>
{when CANCELLED/}
<span class="os-badge os-badge--danger">Cancelled</span>
{otherwise/}
<span class="os-badge os-badge--muted">Unknown</span>
{endcase/}

plsql object type

create or replace type salary_history_ot as object (
    salary    number,
    date_from date,
    date_to   date
);
/
create or replace type salary_history_ntt is table of salary_history_ot;
/
create or replace type employee_ot as object (
    employee_id    number,
    first_name     varchar2(100),
    last_name      varchar2(100),
    email          varchar2(100),
    job_id         varchar2(100),
    salary_history salary_history_ntt,

    constructor function employee_ot 
 

Device data pull - MS Graph

MS Graph script to export all devices information from EntraID environment note - alternative option is to 'export' from GUI of Devices|All devices


#Providing scope definition
Connect-MgGraph -Scopes "Device.Read.All"

<#Get all devices and export to AllDevices.csv path - include columns specified under "Select-Object".
- find additional fields to include beyond:
DisplayName
operating system
operating system version
registration date/time
last logon date/time
account enabled status
compliance?
compliance grace period?
ownership
#>
Get-MgDevice -All | Select-Object DisplayName, OperatingSystem, OperatingSystemVersion, Regi