Posts

Fix Uncaught Error Call to undefined function str_starts_with()

Image
Uncaught Error: Call to undefined function str_starts_with() Fix Solutions if (!function_exists('str_starts_with')) { function str_starts_with($haystack, $needle, $case = true) { if ($case) { return strpos($haystack, $needle, 0) === 0; } return stripos($haystack, $needle, 0) === 0; } } if (!function_exists('str_ends_with')) { function str_ends_with($haystack, $needle, $case = true) { $expectedPosition = strlen($haystack) - strlen($needle); if ($case) { return strrpos($haystack, $needle, 0) === $expectedPosition; } return strripos($haystack, $needle, 0) === $expectedPosition; } }

Update Genshin Impact Via Download Manager

Image
Patch Pre-Download v1.4.0 - v1.5.0 game 1.4.0 1.5.0 diff H8LGSgKU.zip ja-jp 1.4.0 1.5.0 diff hfBOW6ym.zip ko-kr 1.4.0 1.5.0 diff NcX8UP1L.zip en-us 1.4.0 1.5.0 diff KdXT5Pi0.zip zh-cn 1.4.0 1.5.0 diff hvg2F3QM.zip How to update Download Update Version Or Full Game Version Copy all to your Genshin Impact\Genshin Impact Game\ folder .. Preview Example:: . |-- C: |-- Program Files |-- Genshin Impact |-- Genshin Impact Game |-- game_1.4.0_1.5.0_diff_H8LGSgKU.zip |-- ja-jp_1.4.0_1.5.0_diff_hfBOW6ym.zip |-- ko-kr_1.4.0_1.5.0_diff_NcX8UP1L.zip |-- en-us_1.4.0_1.5.0_diff_KdXT5Pi0.zip `-- zh-cn_1.4.0_1.5.0_diff_hvg2F3QM.zip Screenshot

Import composite build plugin as subtitue module dependency [Gradle]

Image
// change folder path inside bracket includeBuild("plugin") { dependencySubstitution { // change your artifact group and id // iam using https://github.com/dimaslanjaka/gradle-plugin/ for example substitute(module("com.dimaslanjaka:gradle-plugin")).with(project(":")) } }

Git Login Via Command Line

Image
git config --global user.name myusername git config --global user.email myemail git config --global github.user myusername git config --global github.token mytoken

Fix Error NodeJS Windows Visual Studio

Image
Install Microsoft Visual Studio Code 2019 Install Module C++ Type below codes to your terminal (administrator) npm i -g --production windows-build-tools npm config set msvs_version 2019 --global npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe"

NodeJS Common Fix Command On Linux Or Windows

Linux # add new repository sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update -y sudo apt install libgtk-3-0 -y sudo apt install software-properties-common checkinstall -y sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev build-essential libncurses5-dev libgmp-dev libnss3-dev wget -y # nodejs additional packages npm install --global lerna node-pre-gyp typescript # python 2.7 sudo apt install python-minimal -y sudo apt install python-pip -y # Install npm --build-from-source install # Fix Chrome Sandbox sudo chown root:root node_modules/electron/dist/chrome-sandbox sudo chmod 4755 node_modules/electron/dist/chrome-sandbox # run sudo npm run start Windows install Visual Studio Installer npm config set msvs_version 2017 --global npm i electron-builder-squirrel-windows electron-builder node-gyp electron electron-rebuild -g node-gyp configure --msvs_version=2017 npm ins

HTML Select Complete Countries

<div class="input-group select2-bootstrap-operator"> <select class="form-control select2-single" tabindex="-1" aria-hidden="true"> <option></option> <optgroup label="Alaskan/Hawaiian Time Zone"> <option value="AK">Alaska</option> <option value="HI" disabled="disabled">Hawaii</option> </optgroup> <optgroup label="Pacific Time Zone"> <option value="CA">California</option> <option value="NV">Nevada</option> <option value="OR">Oregon</option> <option value="WA">Washington</option> </optgroup> <optgroup label="Mountain Time Zone"> <option value="AZ">Arizona</option> <option value="CO"&g